Files
react-navigation/packages/core
Harry Yu 531dc30530 fix: don't pop routeKeyHistory when child handles back action (#75)
## 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
2019-11-18 04:00:10 -08:00
..
2019-04-17 16:29:20 +02:00
2019-08-22 17:46:03 -07:00
2018-10-11 13:50:01 -07:00
2019-08-22 17:46:03 -07:00
2018-10-11 13:50:01 -07:00
2019-04-17 16:29:20 +02:00
2019-04-17 16:29:20 +02:00
2019-04-17 16:29:20 +02:00
2019-04-17 16:29:20 +02:00
2018-10-11 13:50:01 -07:00
2019-05-16 10:54:56 -07:00
2019-04-17 16:29:20 +02:00

React Navigation Core

npm version CircleCI badge PRs Welcome

Development workflow

  • Clone this repository
  • Run yarn in the root directory and in the example directory
  • Run yarn dev in the root directory
  • Run yarn start in the example directory

Docs

Documentation can be found on the React Navigation website.