Replace Navigator with AdsManagerNavigator - step 1

Reviewed By: fkgozali

Differential Revision: D2585102

fb-gh-sync-id: 6f0d51d755e0926f7c6f4d411a026cebf49333a2
This commit is contained in:
Hedger Wang 2015-10-28 18:24:59 -07:00 committed by facebook-github-bot-3
parent ca7a8b271a
commit 064de3b338
1 changed files with 3 additions and 1 deletions

View File

@ -273,6 +273,8 @@ var Navigator = React.createClass({
},
getInitialState: function() {
this._navigationBarNavigator = this.props.navigationBarNavigator || this;
this._renderedSceneMap = new Map();
var routeStack = this.props.initialRouteStack || [this.props.initialRoute];
@ -1074,7 +1076,7 @@ var Navigator = React.createClass({
}
return React.cloneElement(this.props.navigationBar, {
ref: (navBar) => { this._navBar = navBar; },
navigator: this,
navigator: this._navigationBarNavigator,
navState: this.state,
});
},