Skip to content

Commit 7f6e45a

Browse files
committed
configureScene: add routeStack in second argument
1 parent e7b4e01 commit 7f6e45a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Libraries/CustomComponents/Navigator/Navigator.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ var Navigator = React.createClass({
292292
}
293293
return {
294294
sceneConfigStack: routeStack.map(
295-
(route) => this.props.configureScene(route)
295+
(route) => this.props.configureScene(route, routeStack)
296296
),
297297
routeStack,
298298
presentedIndex: initialRouteIndex,
@@ -367,7 +367,7 @@ var Navigator = React.createClass({
367367
this.setState({
368368
routeStack: nextRouteStack,
369369
sceneConfigStack: nextRouteStack.map(
370-
this.props.configureScene
370+
route => this.props.configureScene(route, nextRouteStack)
371371
),
372372
presentedIndex: destIndex,
373373
activeGesture: null,
@@ -911,7 +911,7 @@ var Navigator = React.createClass({
911911
var nextStack = activeStack.concat([route]);
912912
var destIndex = nextStack.length - 1;
913913
var nextAnimationConfigStack = activeAnimationConfigStack.concat([
914-
this.props.configureScene(route),
914+
this.props.configureScene(route, nextStack),
915915
]);
916916
this._emitWillFocus(nextStack[destIndex]);
917917
this.setState({
@@ -979,7 +979,7 @@ var Navigator = React.createClass({
979979
var nextRouteStack = this.state.routeStack.slice();
980980
var nextAnimationModeStack = this.state.sceneConfigStack.slice();
981981
nextRouteStack[index] = route;
982-
nextAnimationModeStack[index] = this.props.configureScene(route);
982+
nextAnimationModeStack[index] = this.props.configureScene(route, nextRouteStack);
983983

984984
if (index === this.state.presentedIndex) {
985985
this._emitWillFocus(route);

0 commit comments

Comments
 (0)