react-native-vimeo-iframe icon indicating copy to clipboard operation
react-native-vimeo-iframe copied to clipboard

App crashes when the react-native-vimeo-iframe leave the viewport

Open husnaintahir opened this issue 2 years ago • 2 comments

I have this strange problem on android, i-e if I have a scroller in place and when I try to scroll to the react-native-vimeo-iframe and go more below until react-native-vimeo-iframe is out of view port, the app crashes.

PS: It's working fine on iOS.

husnaintahir avatar May 05 '23 05:05 husnaintahir

Hi @husnaintahir, are you wrapping the Vimeo component in a ScrollView? If yes, could you try by putting overScrollMode='never' as explained here?

Marcoo09 avatar May 05 '23 15:05 Marcoo09

Still happens to me when adding overScrollMode, but adding another prop works for me. According to this source: https://github.com/meliorence/react-native-render-html/issues/605#issuecomment-1363638140

I have <Vimeo height={height} videoId={id} overScrollMode="never" androidLayerType="software" />

tried both software and hardward, both works and app no crash. not sure what the difference is, but if it works, then i'm good with either.

alan-la-chen-478 avatar Jun 21 '23 02:06 alan-la-chen-478