Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing the drawer reloads tabs and switches back to default tab #2443

Closed
rwillemsandroid opened this issue Sep 27, 2017 · 1 comment
Closed

Comments

@rwillemsandroid
Copy link

Version

Tell us which versions you are using:

  • "react-native-router-flux": "4.0.0-beta.21"
  • "react-native": "0.44.0"

Expected behaviour

I have a Drawer Scene wrapping a Tab scene (similar to the Example App).
When I open and close the drawer without performing any other actions, the user should remain on the same tab.

Actual behaviour

When I'm not in the default tab (Tab_#2 in Example app) and I open & close the drawer, the scene will re-open and bring me back to Tab_#2)

Steps to reproduce

  1. Clone react-native-router-flux repo
  2. Compile Example app
  3. Go to TabBar Page
  4. Open Tab_#1
  5. Open drawer by clicking on the blue hamburger icon
  6. Close drawer by clicking right of the drawer on the underlying scene
  7. Scene will refresh and tab2 will be open again
@redwind
Copy link

redwind commented Sep 29, 2017

add backBehavior={'none'} to your tabs route

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants