-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Hey, thank you for the amazing library!
I'm trying to implement navigation with drawer by root-two and I faced the problem. Is it possible to open drawer by clicking at the left button on the navigation bar? Here's my current code:
Inside index.ios.js
I have
...
renderLeftButton() {
// is it possible to open drawer here
return (
<TouchableOpacity onPress={() => this.context.drawer.open()} style={{height: 20, width: 20, backgroundColor: 'black'}}/>
)
}
...
<Router createReducer={reducerCreate}>
<Scene key="modal" hideNavBar={true}>
<Scene key="drawer" component={Drawer}>
<Scene key="container" renderLeftButton={this.renderLeftButton.bind(this)}>
<Scene key="dashboard" type="replace" component={Dashboard}/>
<Scene key="articles" type="replace" component={Articles}/>
</Scene>
</Scene>
</Scene>
</Router>
...
Or maybe I'm doing something wrong?
Metadata
Metadata
Assignees
Labels
No labels