mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-01-12 22:51:18 +08:00
Previously, 'resetRoot' directly performed a 'setState' on the container instead of dispatching an action. This meant that hooks such as listener for 'preventRemove' won't be notified by it. This commit changes it to dispatch a regular 'RESET' action which will behave the same as other actions.
Example for React Navigation
If you want to run the example from the repo,
- Clone the repository and run
yarnin the project root - Run
yarn example startto start the packager - Follow the instructions to open it with the Expo app
You can also run the currently published app on Expo on your Android device or iOS simulator or the web app in your browser.