We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30999e3 commit b8dcfbcCopy full SHA for b8dcfbc
Libraries/CustomComponents/Navigator/Navigator.js
@@ -1088,7 +1088,10 @@ var Navigator = React.createClass({
1088
}
1089
return React.cloneElement(this.props.navigationBar, {
1090
ref: (navBar) => {
1091
- this.props.navigationBar.ref instanceof Function && this.props.navigationBar.ref(navBar);
+ var navigationBar = this.props.navigationBar;
1092
+ if (navigationBar && navigationBar.ref instanceof Function) {
1093
+ navigationBar.ref(navBar);
1094
+ }
1095
this._navBar = navBar;
1096
},
1097
navigator: this._navigationBarNavigator,
0 commit comments