React-native-navigation: Sidemenu keeps openning on android

Created on 30 Jan 2019  ·  7Comments  ·  Source: wix/react-native-navigation

Issue Description

I pressed on OPEN SIDEMENU button, then I closed it. I switch to tab Flatlist, when I switch back to SideMenu tab, the sidemenu kept openning.

This is playground example project.

screenshot_1548844077

Steps to Reproduce / Code Snippets / Screenshots

screenshot_1548843852


Environment

  • React Native Navigation version: FILL THIS OUT
  • React Native version: FILL THIS OUT
  • Platform(s) (iOS, Android, or both?): FILL THIS OUT
  • Device info (Simulator/Device? OS version? Debug/Release?): FILL THIS OUT

All 7 comments

I fixed this by just mentioning the sideMenu id in the global listener: this is what I pass to:

registerNavigationButtonPressedListener(this.onNavigatorEvent)

onNavigatorEvent = (event) => { switch (event.buttonId) { case 'menu': { Navigation.mergeOptions('MENU', { sideMenu: { right: { visible: true, }, }, }); break; } } }

So in mergeOptions I basically pass the id directly ('MENU'), instead of reading event.componentId;

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 Detox and report back. Thank you for your contributions.

Up

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 Detox and report back. Thank you for your contributions.

@retyui Is this issue still reproducing for you? I think it's fixed by https://github.com/wix/react-native-navigation/commit/43f05ee01574c18d216acfb510be4b5e38165e4d

@guyca
I could not reproduce the problems, RN 2.16

Was this page helpful?
0 / 5 - 0 ratings