@@ -292,7 +292,7 @@ var Navigator = React.createClass({
292
292
}
293
293
return {
294
294
sceneConfigStack : routeStack . map (
295
- ( route ) => this . props . configureScene ( route )
295
+ ( route ) => this . props . configureScene ( route , routeStack )
296
296
) ,
297
297
routeStack,
298
298
presentedIndex : initialRouteIndex ,
@@ -367,7 +367,7 @@ var Navigator = React.createClass({
367
367
this . setState ( {
368
368
routeStack : nextRouteStack ,
369
369
sceneConfigStack : nextRouteStack . map (
370
- this . props . configureScene
370
+ route => this . props . configureScene ( route , nextRouteStack )
371
371
) ,
372
372
presentedIndex : destIndex ,
373
373
activeGesture : null ,
@@ -911,7 +911,7 @@ var Navigator = React.createClass({
911
911
var nextStack = activeStack . concat ( [ route ] ) ;
912
912
var destIndex = nextStack . length - 1 ;
913
913
var nextAnimationConfigStack = activeAnimationConfigStack . concat ( [
914
- this . props . configureScene ( route ) ,
914
+ this . props . configureScene ( route , nextStack ) ,
915
915
] ) ;
916
916
this . _emitWillFocus ( nextStack [ destIndex ] ) ;
917
917
this . setState ( {
@@ -979,7 +979,7 @@ var Navigator = React.createClass({
979
979
var nextRouteStack = this . state . routeStack . slice ( ) ;
980
980
var nextAnimationModeStack = this . state . sceneConfigStack . slice ( ) ;
981
981
nextRouteStack [ index ] = route ;
982
- nextAnimationModeStack [ index ] = this . props . configureScene ( route ) ;
982
+ nextAnimationModeStack [ index ] = this . props . configureScene ( route , nextRouteStack ) ;
983
983
984
984
if ( index === this . state . presentedIndex ) {
985
985
this . _emitWillFocus ( route ) ;
0 commit comments