Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions src/WebView.harmony.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const WebViewComponent = forwardRef<{}, IOSWebViewProps & {scalesPageToFit: bool
javaScriptEnabled = true,
cacheEnabled = true,
originWhitelist = defaultOriginWhitelist,
ignoreSilentHardwareSwitch,
ignoreSilentHardwareSwitch,
useSharedProcessPool = true,
textInteractionEnabled = true,
injectedJavaScript,
Expand All @@ -73,7 +73,7 @@ const WebViewComponent = forwardRef<{}, IOSWebViewProps & {scalesPageToFit: bool
onLoad,
onLoadEnd,
onLoadProgress,
onScroll,
onScroll,
onContentProcessDidTerminate: onContentProcessDidTerminateProp,
onFileDownload,
onHttpError: onHttpErrorProp,
Expand All @@ -92,6 +92,9 @@ const WebViewComponent = forwardRef<{}, IOSWebViewProps & {scalesPageToFit: bool
incognito,
decelerationRate: decelerationRateProp,
onShouldStartLoadWithRequest: onShouldStartLoadWithRequestProp,
onStartShouldSetResponder,
onMoveShouldSetResponderCapture,
onResponderMove,
...otherProps
},
ref
Expand Down Expand Up @@ -290,7 +293,12 @@ const WebViewComponent = forwardRef<{}, IOSWebViewProps & {scalesPageToFit: bool
);

return (
<View style={webViewContainerStyle}>
<View
style={webViewContainerStyle}
onStartShouldSetResponder={(e) => onStartShouldSetResponder?onStartShouldSetResponder(e):false}
onMoveShouldSetResponderCapture={(e) => onMoveShouldSetResponderCapture?onMoveShouldSetResponderCapture(e):false}
onResponderMove={(e) => onResponderMove?onResponderMove(e):null}
>
{webView}
{otherView}
</View>
Expand Down