-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[Android] App crash after react-native-webview upgrade [Solved] #5702
Comments
Hi, |
We are not using a web view on screen that pushes the modal however there is a hidden web view (for google recaptcha) in the modal, could this be the cause? I will test without it and let you know. |
I have a similar issue with webviews displayed by Admob. |
You are right! It was the web view in my recaptcha. Removing that has fixed the issue. Now as to why this is happening... do you have an open ticket for this issue? Also which version of RNN have you experienced this on? |
No I didn't open an issue yet as I wasn't sure where the problem was coming from. |
We actually do use a web view with no height and width as the only way to run the recaptcha verification is via a web view. I just bumped the width and hight to 1 and that seemed to solve the issue too. Are you guys using a web view with no width / height or was this a transition state ? |
BTW Thanks so much for this info, you have been sooo much help! I spent all weekend trying to get to the bottom of this and came up empty handed. This was a great catch. |
You're welcome :) |
Hi @manuhook and @aminosman . I am going to close the issue as this has been resolved already and is not directly related to RNN. Please follow the following issue: react-native-webview/react-native-webview#1069 Also please edit your post and remove your solution to this problem. You only need to disable hardware acceleration for the web view. It is NOT recommended to disable hardware acceleration completely for Android. |
Hi @manuhook, I have the same issue that you, I'm using admob. Could you fixed your issues? Thanks a lot! |
the same thing here !!! |
Issue Description
Getting this error when I dismiss a modal on Android. Cant really get to the bottom of this from the trace. Everything seems to work If I debug and slow the navigation events down. Without a breakpoint in
private void emit(String eventName, WritableMap data)
app crashes. Worth noting this started happening after upgrading to V3 and seems to happen in V4 too. Tried going back to V2 but it seems to not play well with RN 0.61. I have tried different JSC 225067 and 245459 as recommended by #4978 and react-native-community/jsc-android-buildscripts#84.Just found that disabling hardware acceleration has resolved my issue:
android:hardwareAccelerated="false"
Will update as I gather more info as I continue digging.
Steps to Reproduce / Code Snippets / Screenshots
Environment
The text was updated successfully, but these errors were encountered: