In React Native, OnOpenWindow webview property is not triggering or listening when my webview source URI link have additonal query parameter.
not-working
In this stage onOpenwindow property is not triggering due to source URI link has additonal query params
<WebView
source={{ uri: `https://example.com/?apk=1` }
onOpenWindow={(syntenticEvent) => {
const { nativeEvent } = syntenticEvent;
const { targetUrl } = nativeEvent;
console.log("target url of opened popup:::::::", targetUrl);
}
/>
working
<WebView
source={{ uri: `https://example.com` }
onOpenWindow={(syntenticEvent) => {
const { nativeEvent } = syntenticEvent;
const { targetUrl } = nativeEvent;
console.log("target url of opened popup:::::::", targetUrl);
}
/>