iou90 / react-native-autoheight-webview

An auto height webview for React Native
ISC License
492 stars 162 forks source link

Crash with Android 12 #219

Closed sylv1b closed 2 years ago

sylv1b commented 2 years ago

When navigating to a screen containing this component, the app crashes without warning in the console. When waiting to render this component using setTimeout helps sometimes, but this is very random. it works normally with earlier versions of Android and IOS.

qzlu-cyber commented 2 years ago

I had the same problem, in fact it also crashes on the pixel emulator on android 11

IgarMikhailov commented 2 years ago

Set the style of <AutoHeightWebView style={{ width: Dimensions.get('window').width - 15, marginTop: 35, opacity: 0.99 }} />

iou90 commented 2 years ago

Bug description: To Reproduce: Source (static HTML or url): Expected behavior: Environment: OS: Android OS version: react-native version: react-native-webview version: react-native-autoheight-webview version:

Please provide more information and if the demo works (react native: 0.69.1, react native webview: 11.22.7, Android 12). @sylv1b @qzlu-cyber

ddikodroid commented 2 years ago

When navigating to a screen containing this component, the app crashes without warning in the console. When waiting to render this component using setTimeout helps sometimes, but this is very random. it works normally with earlier versions of Android and IOS.

did you managed to solve it?

sylv1b commented 2 years ago

When navigating to a screen containing this component, the app crashes without warning in the console. When waiting to render this component using setTimeout helps sometimes, but this is very random. it works normally with earlier versions of Android and IOS.

did you managed to solve it?

Yes, I found a workaround. I works if you set the opacity to 0.99 like this:

style={{ opacity: 0.99 }}

zd1471278687 commented 2 years ago

style={{ opacity: 0.99 }} It's will have some ui problem on vivo or oppo device add overScrollMode={'never'} property on ScrollView can resolve this problem

iou90 commented 2 years ago

https://github.com/react-native-webview/react-native-webview/issues/1915 It seems not related to this lib.