Answer the question
In order to leave comments, you need to log in
How to make navigation in React Native without saving history?
Hello. Question for those who know React Native: There is navigation in a mobile application, implemented on React Navigation.
We have 2 screens, let A and B. On screen B we can go deeper (view details). If we went deeper into the details, then switched to screen A, and then back to screen B, then screen B will open exactly the route we fell into, i.e. view details. I would like to know how to make it so that when switching, the history of where we fell into the depths is not saved, but the root / initial state of screen B is opened
. Thank you.
Answer the question
In order to leave comments, you need to log in
Look at the navigation dock something like this
Navigate will save the old screen
Replace overwrite
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question