react-native/Libraries/NavigationExperimental
Hedger Wang c780a717e5 Fix UIExplorer Search
Summary:
In UI explorer, the route is made of an object which look like this.

```
{key: 'AppList', filter: 'query string from the search box'}
```

When a new search query is enter, a new `filter` value is applied, and the key `AppList`
remains the same.

In NavigationScenesReducer, we should compare the routes with both their keys and references.

The current implementation only compares the keys, which unfortunately depends on the a weak
assumption that all routes immutable and keys are unique.

In UI Explore, the route key is always 'AppList', which makes sense since we use the key
to match the scene, and whenever a new search query is provides, a new route will be created.

Reviewed By: nicklockwood

Differential Revision: D3357023

fbshipit-source-id: a3c9e98092f5ce555e5dbb4cc806bab2e67d8014
2016-05-27 12:13:26 -07:00
..
Reducer Fix UIExplorer Search 2016-05-27 12:13:26 -07:00
__mocks__ Clean up APIs. 2016-03-04 14:57:31 -08:00
__tests__ Rename `navigationState.children` to `navigationState.routes`. 2016-05-22 16:28:27 -07:00
NavigationAbstractPanResponder.js Simplify <NavigationCard />. 2016-03-15 15:59:26 -07:00
NavigationAnimatedView.js explicit type args in react-native-github 2016-05-24 18:28:26 -07:00
NavigationExperimental.js Fork NavigationAnimatedView to NavigationTransitioner 2016-05-18 13:43:31 -07:00
NavigationPropTypes.js Remove `key` from `NavigationState`. 2016-05-26 18:13:23 -07:00
NavigationStateUtils.js Remove `key` from `NavigationState`. 2016-05-26 18:13:23 -07:00
NavigationTransitioner.js Fix NavigationTransitioner. 2016-05-25 11:28:21 -07:00
NavigationTypeDefinition.js Remove `key` from `NavigationState`. 2016-05-26 18:13:23 -07:00