0.0.4 • Published 3 months ago
tavukburger v0.0.4
tavukburger
Animated fully configurable hamburger menu for react-native!
Installation
NPM
npm install tavukburger --save
Yarn
yarn add tavukburger
Usage
...
import Hamburger from 'tavukburger';
...
<Hamburger type="cross" active={this.state.active} onPress={() => {
this.setState({ active: !this.state.active })
}}
underlayColor="transparent"
>
</Hamburger>
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.
This repository is a fork of react-native-hamburger