-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
v4 Tabs - reset stack on changing tab #2215
Comments
try |
This setting doesn't solve my problem, it deactivates the behavior to select the initial tab on back when you have no routes in your stack. But it doesn't clear the stack on changing tabs. |
A couple of things you could do when you nav to the scene: OR when you set up your router: OR to initiate reset when on tab scene |
@fxhereng @MakeAndyBetter is right, it should work (not everybody needs such 'feature' so I can't make it 'built-in' into RNRF). |
Thanks for response, The Other solution would work I suppose but how do you override the I saw there was a Do you see what I mean? |
attach the reset action to a timeout - within your own method for
|
Thanks for those precisions, But how do you override the I understand I can call it from outside if needed, but when you click on the tabs explicitely, how do you override this onPress event? Cheers, |
HI ,
|
Version
Tell us which versions you are using:
I have 4 tabs in my application with some subscenes, for example When I'm navigating in Tab1 - Scene 2 --> Scene 3, then on switching to Tab2, it keeps the routes of Tab1. So that when pressing android Back button, it removes the Scene3 and come back to the state Tab1 - Scene2. Behavior I would like to delete.
Is there a way to tell that when switching tabs, resetting the previous embeded tabs routes?
The text was updated successfully, but these errors were encountered: