An important feature that all Android devices have is a dedicated back button. By default, the behavior of this back button is to go to the previous running activity. Since React Native generally only has one main React Activity, this will take you out of your application. Sometimes we may not want to have this default behavior, and use the back button inside our React Native application.
This recipe will create a simple example using React Native's latest navigation implementation
NavigationExperimental and attach a back button listener to step back through the navigation stack.
For this recipe, it may be a good idea to familiarize yourself with the
NavigationExperimental documentation. We have demonstrated ...