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

getJSEventName() needs a ScrollEventType parameter
This commit is contained in:
liminjie 2019-05-17 15:25:53 +08:00 committed by Thibault Malbranche
parent cfa49943c4
commit cbbff21ea8
1 changed files with 1 additions and 1 deletions

View File

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