Ver código fonte

pass state for onNavigationStateChange for ios

iou90 7 anos atrás
pai
commit
d6521d5669
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      autoHeightWebView/index.ios.js

+ 1
- 1
autoHeightWebView/index.ios.js Ver arquivo

113
     const { title } = navState;
113
     const { title } = navState;
114
     const { onNavigationStateChange } = this.props;
114
     const { onNavigationStateChange } = this.props;
115
     if (!title) {
115
     if (!title) {
116
-      onNavigationStateChange && onNavigationStateChange();
116
+      onNavigationStateChange && onNavigationStateChange(navState);
117
       return;
117
       return;
118
     }
118
     }
119
     const [heightValue, widthValue] = title.split(',');
119
     const [heightValue, widthValue] = title.split(',');