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,6 +138,7 @@ export default class AutoHeightWebView extends PureComponent {
138 138
         ]}
139 139
       >
140 140
         <WebView
141
+          originWhitelist={['*']}
141 142
           ref={this.getWebView}
142 143
           onError={onError}
143 144
           onLoad={onLoad}