-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Crash] WebView inside ScrollView crash on scroll end - Android #2364
Comments
Update: added a simple example app to reproduce the bug... here is the repo link... |
+1 |
+1 |
@noumantahir Did you try to add https://reactnative.dev/docs/scrollview#overscrollmode-android |
Thanks for the tip @phuongwd this worked like a charmm, saved us so much frustration... |
+1 |
1 similar comment
+1 |
Same problem here and the tip by @phuongwd works great. |
Same problem, but, even with the tip above applied, crash persists if you navigate back (
|
Same problem, and
It's only happened on Android 12 with Qualcomm Gen 1 ok, I finally realized it's dup to #1915 |
You are a genius. You solved my 9hours problem. |
i'm using import { WebView } from 'react-native-webview', implementing |
add in scrollView props
work for me. |
Thank you, Magic Master. What happened here? |
Using |
Silly me, I was adding |
I add this prop in ScrollView cause full screen white |
Hi , I am also facing same Issue ,please help..!! It's works Fine In IOS But In android when we scroll to the end App crash ,I try to used androidLayerType='software' but it's show blank white screen.
|
remove removeClippedSubviews={true} prop in ScrollView and remove opacity={{0.99}} prop in WebView , just add overScrollMode='never' in ScrollView works for me |
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
still searching for solutions |
renderToHardwareTextureAndroid={true} |
This is fixed by #2874. You can use it via |
|
Just a tip: Depending on various factors, you will likely still experience crashes, albeit more rarely and randomly, with overScrollMode never. I suggest you use a crash monitoring solution to verify. The only real fix is the PR I mentioned in my previous comment. |
@andreialecu thank you. Do you mean then we can use default value |
With the fix in that PR, yes. |
Thanks for the reply. Working fine with this |
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
This is because of the over scrolled occur in react native try to use this:- overScrollMode="never" |
Save my life. Thanks so much |
We are currently using this PR in production. It works, seems stable and we'd really like to move back to the main package. Can anyone confirm what the delay in merging this PR is? |
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
still searching for solutions but we have one, but it's still not merged. #2874 |
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
|
Bug description:
When I try to put a webview inside a scroll view along with other native content, the app crashes when scroll reaches the end. I have tried various different possibilities to check if it has something to do with my code but it seems otherwise.
Things work fine on iOS side, only Android side crashes.
To Reproduce:
Even a simple code as this one below should reproduce the bug, it does on my side.
Example app with reproduction code:
https://github.com/noumantahir/react-native-webview-scrollview-crash
Screenshots/Videos:
Screen.Recording.2022-02-03.at.12.24.54.PM.mov
Environment:
The text was updated successfully, but these errors were encountered: