-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recaptcha not open webView on iOS #65
Comments
Still not working, WebView is rendering but <script> tag not running in WebView |
Changed react-native-webview to https://github.com/birdofpreyru/react-native-webview and it's helped me |
Hello everyone, thank you for your reports. I can't review this yet, but it is on my radar. |
Can you share me please your package.json? I cant fix it. "dependencies": { |
I copied the implementation and just added it to my code as a separate component, replacing the react-native-webview lib. Otherwise, you need to change the package.json in the library itself, not your own json |
@DavidHuertasF Try something like that: "dependencies:" {
"react-native-webview": "npm:@dr.pogodin/react-native-webview@13.14.0",
...
} |
@DavidHuertasF
|
@KarinaOleynik yes its worked. Thanks. |
I still have the same problem, and the @KarinaOleynik suggestion doesn't work for me @kinjalgajera22 how do you fix this? |
@jeancantu you need to perfom below steps
then at android side do gradlew clean and run project |
Can you guys confirm if the problem you are seeing is related to this? |
@kinjalgajera22 I'm still having the problem, I'm using "expo" version 52 and after I call |
@douglasjunior I am pretty sure it is related to that issue. I encountered it also in a recaptcha component (not this library though), and the change I did in that PR fixed it for me. If there is anyone willing to test if that PR fixes this issue too, you can try these steps:
|
This should be fixed in version 13.12.5 of react-native-webview by this PR: react-native-webview/react-native-webview#3615 |
Thank you very much @mlazari for your effort. |
Even though after the publish of version 13.12.5 of react-native-webview, the webview is freeze in loading state. I've tried override the react-native-webview with the "dependencies": {
....
"react-native-recaptcha-that-works": "^2.0.0",
"react-native-webview": "npm:@dr.pogodin/react-native-webview@13.14.0"
},
"overrides": {
"react-native-recaptcha-that-works": {
"react-native-webview": "npm:@dr.pogodin/react-native-webview@13.14.0"
}
}, <Recaptcha
ref={recaptcha}
siteKey={process.env.EXPO_PUBLIC_RECAPTCHA_SITE_KEY}
baseUrl={process.env.EXPO_PUBLIC_RECAPTCHA_SITE_DOMAIN}
onVerify={onVerify}
size="invisible"
action={process.env.EXPO_PUBLIC_RECAPTCHA_RECOVERY_ACTION}
loadingComponent={<Modal.Loading />}
enterprise
hideBadge
lang="pt-BR"
onExpire={() => {
console.info("Recaptcha expired");
recaptcha.current?.close();
}}
onLoad={() => {
console.info("Recaptcha loaded");
}}
onError={(e) => {
recaptcha.current?.close();
console.error("Recaptcha error", e);
}}
onClose={() => console.log("Recaptcha closed")}
/> ps: sometimes the loading state update when I change something in the code and force a fast reload. |
@gabrielew Does that happen on iOS or Android? If Android, it might be a different issue, someone reported something Android related here: react-native-webview/react-native-webview#3619
|
The problem was in iOS. Edit: Work with lastest version of react-native-webview. "dependencies": {
...
"react-native-webview": "^13.12.5"
},
"overrides": {
"react-native-recaptcha-that-works": {
"react-native-webview": "^13.12.5"
}
}, Thanks @mlazari for all support |
@jeancantu I have fixed it in React Native CLI 0.76.1. |
I upgraded React Native to the latest version and Recaptcha not working on iOS anymore. It's start loading but not open the Recaptcha.
The text was updated successfully, but these errors were encountered: