Open Invertisment opened 3 years ago
It doesn't crash if emulator has API 27
I confirm the same scenario. If the component is reloaded (upon navigation) to regenerate the token, it crashes on Android, but not on iOS.
Also opacity and hardware acceleration fixes don't work to fix this one.
Adding androidHardwareAccelerationDisabled
to the WebView component fixed it for me. Though I reckon this is just a temporary solution until react-native-webview
fixes this.
Problem is that react-native-recaptchav3
does not expose props for the webview or its container. This would be a good occasion to add them
When I test my app on emulator (
API 30
withAndroid 10.0+
) I can't load the component for the second time. It crashes the app and I can't catch the error usingErrorBoundary
component.It doesn't crash on a real Android device (
Android 7.0
which would beAPI 21
and no updated Chromium WebView) no matter how many times I reload the captcha component. So it's related to the emulator or versions of Android libraries in it.I found these issues which say that that there is an issue with current Chrome: https://github.com/rishichawda/react-native-qrcode-generator/issues/23 https://github.com/react-native-webview/react-native-webview/issues/429#issuecomment-747811636
Is it fine to have a small PR that applies their fixes?