react-native/Libraries/NavigationExperimental/Reducer
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
..
__tests__ Fix UIExplorer Search 2016-05-27 12:13:26 -07:00
NavigationFindReducer.js Rename `NavigationState` to `NavigationRoute`, rename `NavigationParentState` to `NavigationState`. 2016-05-20 14:28:35 -07:00
NavigationReducer.js NavigationExperimental 2016-02-05 14:26:35 -08:00
NavigationScenesReducer.js Fix UIExplorer Search 2016-05-27 12:13:26 -07:00
NavigationStackReducer.js Rename `navigationState.children` to `navigationState.routes`. 2016-05-22 16:28:27 -07:00
NavigationTabsReducer.js Rename `navigationState.children` to `navigationState.routes`. 2016-05-22 16:28:27 -07:00