ex-navigation icon indicating copy to clipboard operation
ex-navigation copied to clipboard

Disable swipe back (iOS) or back button (Android)

Open pukhalski opened this issue 8 years ago • 1 comments

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.

pukhalski avatar Apr 14 '17 09:04 pukhalski

You might want to check this out: https://gist.github.com/knowbody/ce483742a1761658b767428a0ed35147#resetmodify-the-navigation-stack-history

parijatsahai avatar May 23 '17 05:05 parijatsahai