Skip to content

Commit a582d67

Browse files
Kureev Alexeyoss sync
authored andcommitted
navigator.getCurrentRoutes()
Summary: According to our talk with @ericvicenti about `renderScene` arguments Closes #553 Github Author: Kureev Alexey <kureev-mail@ya.ru> Test Plan: Imported from GitHub, without a `Test Plan:` line.
1 parent 7f12efa commit a582d67

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Libraries/CustomComponents/Navigator/Navigator.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ var Navigator = React.createClass({
318318
popToRoute: this.popToRoute,
319319
popToTop: this.popToTop,
320320
parentNavigator: this.props.navigator,
321+
getCurrentRoutes: this.getCurrentRoutes,
321322
// We want to bubble focused routes to the top navigation stack. If we
322323
// are a child navigator, this allows us to call props.navigator.on*Focus
323324
// of the topmost Navigator
@@ -998,6 +999,10 @@ var Navigator = React.createClass({
998999
}
9991000
},
10001001

1002+
getCurrentRoutes: function() {
1003+
return this.state.routeStack;
1004+
},
1005+
10011006
_onItemRef: function(itemId, ref) {
10021007
this._itemRefs[itemId] = ref;
10031008
var itemIndex = this.state.idStack.indexOf(itemId);

0 commit comments

Comments
 (0)