Browse Source

Update index.android.js

Hleb Barylskyi 7 years ago
parent
commit
221df3d50e
No account linked to committer's email address
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      autoHeightWebView/index.android.js

+ 8
- 0
autoHeightWebView/index.android.js View File

@@ -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 {