瀏覽代碼

fix(Android): on scroll syntax error (#577)

getJSEventName() needs a ScrollEventType parameter
liminjie 5 年之前
父節點
當前提交
cbbff21ea8
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java

+ 1
- 1
android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java 查看文件

@@ -449,7 +449,7 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
449 449
     }
450 450
     export.put(TopLoadingProgressEvent.EVENT_NAME, MapBuilder.of("registrationName", "onLoadingProgress"));
451 451
     export.put(TopShouldStartLoadWithRequestEvent.EVENT_NAME, MapBuilder.of("registrationName", "onShouldStartLoadWithRequest"));
452
-    export.put(ScrollEventType.SCROLL.getJSEventName(), MapBuilder.of("registrationName", "onScroll"));
452
+    export.put(ScrollEventType.getJSEventName(ScrollEventType.SCROLL), MapBuilder.of("registrationName", "onScroll"));
453 453
     return export;
454 454
   }
455 455