root-two / react-native-drawer

React Native Drawer
MIT License
2.54k stars 390 forks source link

this.context.drawer.open didn't open in android #315

Open majidln opened 7 years ago

majidln commented 7 years ago

hello thank's for this library

I use this function call in my code for open drawer: <Icon name={this.props.iconDefault} size={this.props.size} style={{color: this.props.tintColor}} onPress={() => this.context.drawer.open()} />

static contextTypes = {drawer: React.PropTypes.object}

this code open drawer on ios but it didn't work on android

please help me

majidln commented 7 years ago

any idea?

v3yr0n commented 7 years ago

Same here...

v3yr0n commented 7 years ago

Well, in my case i've replaced the this.context.drawer.open() with openDrawer() and passed that function to my view.