Hamburger menu for react-native!
npm install react-native-animated-hamburgerbash
npm install react-native-animated-hamburger --save
`Yarn
`bash
npm add react-native-animated-hamburger
`Usage
`javascript
...
import Hamburger from 'react-native-animated-hamburger';
...
{
this.setState({ active: !this.state.active })
}}
underlayColor="transparent"
>
`Props
| Prop | Description | Typ | Default |
|---------|---------------------------------------------------------------------------|----------|-----------|
| type | Type of Animation Available types: {arrow, spinArrow, cross, spinCross} | String | cross |
| onPress | Called when the hamburger gets pressed | Function | undefined |
| active | Determines the activation state of Hamburger. | Boolean | false |
Todo
- [ ] Add an example of integrating with Redux.
- [ ] Add an example of integrating with NativeBase drawer. ---
react-native-hamburger`