react-native-autoheight-webview icon indicating copy to clipboard operation
react-native-autoheight-webview copied to clipboard

Crash with Android 12

Open sylv1b opened this issue 2 years ago • 6 comments

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.

sylv1b avatar Mar 18 '22 07:03 sylv1b

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

qzlu-cyber avatar Apr 08 '22 11:04 qzlu-cyber

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

IgarMikhailov avatar Apr 25 '22 13:04 IgarMikhailov

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

iou90 avatar Jul 20 '22 06:07 iou90

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?

ddikodroid avatar Aug 10 '22 11:08 ddikodroid

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 }}

sylv1b avatar Aug 13 '22 08:08 sylv1b

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

zd1471278687 avatar Aug 16 '22 03:08 zd1471278687

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

iou90 avatar Sep 06 '22 03:09 iou90