mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-13 22:30:41 +08:00
## Motivation When pressing back in a StackNavigator nested inside the SwitchRouter, the screen would get popped, but the routeKeyHistory of the SwitchRouter gets popped even though the SwitchRouter doesn't handle the back action. This results in the next back action skipping the last opened tab. ## Fix Before popping the `routeKeyHistory` stack, we check that the history actually changed. I also added a test for this
React Navigation Core
Development workflow
- Clone this repository
- Run
yarnin the root directory and in theexampledirectory - Run
yarn devin the root directory - Run
yarn startin theexampledirectory
Docs
Documentation can be found on the React Navigation website.