mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-04 21:09:21 +08:00
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:
committed by
Facebook Github Bot 0
parent
9c89221d27
commit
229d6d2fd0
@@ -40,6 +40,7 @@ export type NavigationLayout = {
|
||||
|
||||
export type NavigationScene = {
|
||||
index: number,
|
||||
isActive: boolean,
|
||||
isStale: boolean,
|
||||
key: string,
|
||||
route: NavigationRoute,
|
||||
|
||||
Reference in New Issue
Block a user