Fix NavigationScenesReducer.

Summary:
Fix a bug in NavigationScenesReducer that prevents scenes from re-rendering.
This happens when jumping the index between routes.

The fix is to add an new property `isActive` to `NavigationScene` to indicate the current active scene.

Reviewed By: ericvicenti

Differential Revision: D3479736

fbshipit-source-id: a71419887acd94ad2fead71596ca46419a88efef
This commit is contained in:
Hedger Wang
2016-06-27 12:03:51 -07:00
committed by Facebook Github Bot 0
parent 9c89221d27
commit 229d6d2fd0
5 changed files with 150 additions and 88 deletions

View File

@@ -40,6 +40,7 @@ export type NavigationLayout = {
export type NavigationScene = {
index: number,
isActive: boolean,
isStale: boolean,
key: string,
route: NavigationRoute,