Browse Source

pass state for onNavigationStateChange for ios

iou90 6 years ago
parent
commit
d6521d5669
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      autoHeightWebView/index.ios.js

+ 1
- 1
autoHeightWebView/index.ios.js View File

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(',');