[ReactNative] Navigator initially render all scenes
This commit is contained in:
parent
50c9c616fb
commit
b3a2d6c574
|
@ -287,9 +287,10 @@ var Navigator = React.createClass({
|
||||||
),
|
),
|
||||||
idStack: routeStack.map(() => getuid()),
|
idStack: routeStack.map(() => getuid()),
|
||||||
routeStack,
|
routeStack,
|
||||||
// These are tracked to avoid rendering everything all the time.
|
// `updatingRange*` allows us to only render the visible or staged scenes
|
||||||
updatingRangeStart: initialRouteIndex,
|
// On first render, we will render every scene in the initialRouteStack
|
||||||
updatingRangeLength: initialRouteIndex + 1,
|
updatingRangeStart: 0,
|
||||||
|
updatingRangeLength: routeStack.length,
|
||||||
// Either animating or gesturing.
|
// Either animating or gesturing.
|
||||||
isAnimating: false,
|
isAnimating: false,
|
||||||
jumpToIndex: routeStack.length - 1,
|
jumpToIndex: routeStack.length - 1,
|
||||||
|
|
Loading…
Reference in New Issue