diff --git a/src/WebView.harmony.tsx b/src/WebView.harmony.tsx index c4ae5d246..fe15e780d 100644 --- a/src/WebView.harmony.tsx +++ b/src/WebView.harmony.tsx @@ -111,9 +111,9 @@ const WebViewComponent = forwardRef<{}, IOSWebViewProps & { scalesPageToFit: boo > | null>(null); const onShouldStartLoadWithRequestCallback = useCallback( - (shouldStart: boolean, _url: string, lockIdentifier = 0) => { + async (shouldStart: boolean, _url: string, lockIdentifier = 0) => { RNCWebViewModule.shouldStartLoadWithLockIdentifier( - shouldStart, + await shouldStart, lockIdentifier ); }, @@ -327,4 +327,4 @@ const isFileUploadSupported: () => Promise = async () => true; const WebView = Object.assign(WebViewComponent, { isFileUploadSupported }); -export default WebView; \ No newline at end of file +export default WebView;