Replace Navigator with AdsManagerNavigator - step 1
Reviewed By: fkgozali Differential Revision: D2585102 fb-gh-sync-id: 6f0d51d755e0926f7c6f4d411a026cebf49333a2
This commit is contained in:
parent
ca7a8b271a
commit
064de3b338
|
@ -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,
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue