startTabBasedApp, add left menu screen as drawer, gesture or toggleDrawer API never call the left menu successfully.
I tried any hacks from those issues. e.g. remove to: "open", set fixed width of drawer screen, but always failed
Navigation.startTabBasedApp({
tabs: [
{
label: "Feeds",
screen: Screen.HOMEFeedsTab,
icon: icons[0],
title: "Feeds",
navigatorButtons: {
leftButtons: [
{
id: "sideMenu"
}
]
}
},
{
label: "Issues",
screen: Screen.HOMEIssuesTab,
icon: icons[1],
title: "Issues",
navigatorButtons: {
leftButtons: [
{
id: "sideMenu"
}
]
}
}
],
drawer: {
left: {
screen: Screen.LeftMenu,
passProps: {}
},
disableOpenGesture: false
}
});
screen which has the menu button:
constructor(props) {
super(props);
this.props.navigator.setOnNavigatorEvent(this.onNavigatorEvent);
}
onNavigatorEvent = event => {
console.log(event);
if (event.type === "NavBarButtonPress") {
if (event.id === "sideMenu") {
this.props.navigator.toggleDrawer({
side: "left" // the side of the drawer since you can have two, 'left' / 'right'
// animated: true,
// to: "open"
});
}
}
};
I downgrade my react-native version to 0.50.4, it's works now. Maybe some changes between 0.50 and 0.51 has broken our package functionality.
but still not work for Android 7.1.1 on SM-N9500, works for Android 7.1.1 on AVD
Still getting this issue in version 1.1.323 if I go up to RN 0.51.
Anyone know of a good breakpoint for testing drawer behavior in Android?
I have the same issue, with version 0.50.4 and 0.51
Having this issue with version 0.50.3, width is set in the drawer component. 99% of the time, the drawer doesn't work
I had the same issue with the latest RN version! Try RN 0.49.5, this one works for me!
Thanks @SquaredData. Just tried it now and it worked.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.
The issue has been closed for inactivity.
Most helpful comment
Thanks @SquaredData. Just tried it now and it worked.