mirror of
https://github.com/expo/react-native-webview.git
synced 2026-11-15 09:18:06 -10:00
fix(Android): on scroll syntax error (#577)
getJSEventName() needs a ScrollEventType parameter
This commit is contained in:
1 parent
cfa49943c4
commit
cbbff21ea8
1 file changed
+1
-1
@@ -449,7 +449,7 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
||||
}
|
||||
export.put(TopLoadingProgressEvent.EVENT_NAME, MapBuilder.of("registrationName", "onLoadingProgress"));
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user