mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-25 21:05:40 +08:00
[ReactNative] Fix logic in popToRoute
This commit is contained in:
@@ -1062,7 +1062,7 @@ var Navigator = React.createClass({
|
||||
indexOfRoute !== -1,
|
||||
'Calling pop to route for a route that doesn\'t exist!'
|
||||
);
|
||||
return this.state.routeStack.length - indexOfRoute - 1;
|
||||
return this.state.presentedIndex - indexOfRoute;
|
||||
},
|
||||
|
||||
popToRoute: function(route) {
|
||||
|
||||
Reference in New Issue
Block a user