소스 검색

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

getJSEventName() needs a ScrollEventType parameter
liminjie 6 년 전
부모
커밋
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
     }
449
     }
450
     export.put(TopLoadingProgressEvent.EVENT_NAME, MapBuilder.of("registrationName", "onLoadingProgress"));
450
     export.put(TopLoadingProgressEvent.EVENT_NAME, MapBuilder.of("registrationName", "onLoadingProgress"));
451
     export.put(TopShouldStartLoadWithRequestEvent.EVENT_NAME, MapBuilder.of("registrationName", "onShouldStartLoadWithRequest"));
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
     return export;
453
     return export;
454
   }
454
   }
455
 
455