Skip to content

Commit e7b4e01

Browse files
committed
Merge remote-tracking branch 'gre/patch-5' into 0.17-stable
2 parents d8d3982 + cb2bcc0 commit e7b4e01

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Libraries/CustomComponents/Navigator/Navigator.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,16 +1083,16 @@ var Navigator = React.createClass({
10831083
},
10841084

10851085
_renderNavigationBar: function() {
1086-
if (!this.props.navigationBar) {
1086+
let { navigationBar } = this.props;
1087+
if (!navigationBar) {
10871088
return null;
10881089
}
1089-
return React.cloneElement(this.props.navigationBar, {
1090+
return React.cloneElement(navigationBar, {
10901091
ref: (navBar) => {
1091-
var navigationBar = this.props.navigationBar;
1092-
if (navigationBar && typeof navigationBar.ref === "function") {
1092+
this._navBar = navBar;
1093+
if (navigationBar && typeof navigationBar.ref === 'function') {
10931094
navigationBar.ref(navBar);
10941095
}
1095-
this._navBar = navBar;
10961096
},
10971097
navigator: this._navigationBarNavigator,
10981098
navState: this.state,

0 commit comments

Comments
 (0)