react-native/Libraries/CustomComponents/Navigator
Lord Daniel Zautner 95b1fc42b7 Emit `willfocus` from immediatelyResetRouteStack
Summary:
The Navigator component inconsistently emits the `willfocus` event.

While it is emitted in `Navigator#resetTo`, `Navigator#push`, `Navigator#pop` and event `Navigator#replaceAtIndex` it is not emitted from `Navigator#immediatelyResetRouteStack`. This leads to surprising inconsistencies when working with these events.

With the PR I suggest to emit the `willfocus` event before resetting the route stack.
Closes https://github.com/facebook/react-native/pull/10125

Differential Revision: D3931284

fbshipit-source-id: 6e4f45c6d38426bcd0acc8f8c39478524032a03a
2016-09-27 11:43:32 -07:00
..
Navigation Adapt unit tests 2016-07-14 06:28:21 -07:00
Navigator.js Emit `willfocus` from immediatelyResetRouteStack 2016-09-27 11:43:32 -07:00
NavigatorBreadcrumbNavigationBar.js Prevent 1st breadcrumb from stealing touches from title 2016-09-20 14:13:30 -07:00
NavigatorBreadcrumbNavigationBarStyles.android.js Export per-platform NavigatorNavigationBarStyles for consistent styling 2015-10-10 15:32:46 -07:00
NavigatorBreadcrumbNavigationBarStyles.ios.js fix navigator lint warnings 2015-11-30 19:31:30 -08:00
NavigatorNavigationBar.js Convert from React.createClass to ES6 classes 2016-07-26 01:13:31 -07:00
NavigatorNavigationBarStylesAndroid.js Export per-platform NavigatorNavigationBarStyles for consistent styling 2015-10-10 15:32:46 -07:00
NavigatorNavigationBarStylesIOS.js change leftButton init position 2016-06-06 07:28:24 -07:00
NavigatorSceneConfigs.js Added the PushFromLeft animation to Navigator 2016-09-09 06:28:34 -07:00