Handle hardware backbutton
marked this post as
You can prevent back using this listener in 5.x https://reactnavigation.org/docs/preventing-going-back/
Merged in a post:
disable BackHandler binding with a props
For cases where one would like to disable the react-navigation android hardware back button default handling behaviour
This one is very important. For instance if app goes offline, and we show an screen, we dont want that to be dismised by back button.