Selaa lähdekoodia

Update index.android.js

Hleb Barylskyi 6 vuotta sitten
vanhempi
commit
221df3d50e
No account linked to committer's email address
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 8
    0
      autoHeightWebView/index.android.js

+ 8
- 0
autoHeightWebView/index.android.js Näytä tiedosto

@@ -273,6 +273,14 @@ export default class AutoHeightWebView extends PureComponent {
273 273
     onLoadEnd && onLoadEnd(event);
274 274
   };
275 275
 
276
+  stopLoading() {
277
+    UIManager.dispatchViewManagerCommand(
278
+      findNodeHandle(this.webview),
279
+      UIManager.RCTAutoHeightWebView.Commands.stopLoading,
280
+      null
281
+    );
282
+  }
283
+
276 284
   render() {
277 285
     const { height, script, isChangingSource, heightOffset } = this.state;
278 286
     const {