浏览代码

Update index.android.js

Hleb Barylskyi 6 年前
父节点
当前提交
221df3d50e
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8
    0
      autoHeightWebView/index.android.js

+ 8
- 0
autoHeightWebView/index.android.js 查看文件

273
     onLoadEnd && onLoadEnd(event);
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
   render() {
284
   render() {
277
     const { height, script, isChangingSource, heightOffset } = this.state;
285
     const { height, script, isChangingSource, heightOffset } = this.state;
278
     const {
286
     const {