DEV Community

Discussion on: Splash Screen, Tutorial Screens, Authentication Screens Flow in React-Native

Collapse
 
pjullrich profile image
Peter Ullrich

You could have implemented a SwitchNavigator instead of the custom resetAction function, I think. The SwitchNavigator resets the screen whenever they are unmounted and disallows going back, even with the hardware button on Android. A good tutorial is provided in the react-navigator docs: reactnavigation.org/docs/en/auth-f...

Collapse
 
saadbashar profile image
Saad

Thanks a lot Peter!