0.0.2 • Published 8 years ago

react-native-animated-hamburger v0.0.2

Weekly downloads
14
License
MIT
Repository
github
Last release
8 years ago

react-native-animated-hamburger

Animated fully configurable hamburger menu for react-native! alt tag

Installation

NPM

npm install react-native-animated-hamburger --save

Yarn

npm add react-native-animated-hamburger

Usage

...
import Hamburger from 'react-native-animated-hamburger';
...
<Hamburger type="cross" active={this.state.active} onPress={() => {
              this.setState({ active: !this.state.active })
          }}
          underlayColor="transparent"
          >
 </Hamburger>

Props

PropDescriptionTypDefault
typeType of Animation Available types: {arrow, spinArrow, cross, spinCross}Stringcross
onPressCalled when the hamburger gets pressedFunctionundefined
activeDetermines the activation state of Hamburger.Booleanfalse

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