Browse Source

add orginWihitelist={['*']} to index.ios.js to fix https://github.com/facebook/react-native/issues/19986 error

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

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

138
         ]}
138
         ]}
139
       >
139
       >
140
         <WebView
140
         <WebView
141
+          originWhitelist={['*']}
141
           ref={this.getWebView}
142
           ref={this.getWebView}
142
           onError={onError}
143
           onError={onError}
143
           onLoad={onLoad}
144
           onLoad={onLoad}