react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

Open Drawer from custom navbar

Open yayanartha opened this issue 9 years ago • 3 comments

Is it possible to open Drawer by clicking a button when navbar is hidden (e.g from custom navbar)? Swiping from edge screen seems to work fine but not by clicking a custom hamburger button on top of custom navbar.

yayanartha avatar Apr 29 '17 17:04 yayanartha

<Button
    title="Open Drawer"
    onPress={() => this.props.navigator.toggleDrawer({
        side: 'left',
        animated: true
    })}
/>

anhtuank7c avatar May 05 '17 03:05 anhtuank7c

What happens if I want tu use: <NavigationBar.DrawerButton onPress={this.() => { this.props.navigator.toggleDrawer({ screen: 'com.vivi.DrawerMenuScreen', animated: true, side: 'left', backButtonHidden: false })} /> ??? doesn't work, what can I do?

vivi7 avatar Jun 19 '17 10:06 vivi7

@anhtuank7c but why when I call the 'toggleDrawer' from "setOnNavigatorEvent" there is no effect?

jsina avatar Aug 14 '17 07:08 jsina