ex-navigation
ex-navigation copied to clipboard
Disable swipe back (iOS) or back button (Android)
I have the next scenario: login screen and one more screen after it. Obviously, I don't want a user to be able to go back to login page after successfully logged in. Replacing a route with another one doesn't make sliding animation work of course which looks ugly.
So the question is: is it possible to disable an ability to go back to the first (login) route or delete the first (login) route after the animation to the main screen?
Thanks.
You might want to check this out: https://gist.github.com/knowbody/ce483742a1761658b767428a0ed35147#resetmodify-the-navigation-stack-history