File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Libraries/CustomComponents/Navigator Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1083,16 +1083,16 @@ var Navigator = React.createClass({
1083
1083
} ,
1084
1084
1085
1085
_renderNavigationBar : function ( ) {
1086
- if ( ! this . props . navigationBar ) {
1086
+ let { navigationBar } = this . props ;
1087
+ if ( ! navigationBar ) {
1087
1088
return null ;
1088
1089
}
1089
- return React . cloneElement ( this . props . navigationBar , {
1090
+ return React . cloneElement ( navigationBar , {
1090
1091
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' ) {
1093
1094
navigationBar . ref ( navBar ) ;
1094
1095
}
1095
- this . _navBar = navBar ;
1096
1096
} ,
1097
1097
navigator : this . _navigationBarNavigator ,
1098
1098
navState : this . state ,
You can’t perform that action at this time.
0 commit comments