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

Skip maintaining the state on each tab screen. #21

Open
arbazadam opened this issue Mar 26, 2022 · 1 comment
Open

Skip maintaining the state on each tab screen. #21

arbazadam opened this issue Mar 26, 2022 · 1 comment

Comments

@arbazadam
Copy link

I would like to know that how can i skip maintaining the state of the visited tab screen. What i mean is if i am on the first tab and i visit a nested route within that tab and then switch to the second tab. Now coming back to the first tab should always take me to the initial screen rather then the nested screen. How do i do that?

@SEGVeenstra
Copy link

If I understand correctly, you DON'T want to maintain state of the tabs?

Did you use this project as your base? Because this specifically addresses that problem (from the README).

If you don't want to maintain state, You can probably do with a single nested Navigator and use the BottomNavigationBar to switch between routes.

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