LonelyCpp / react-native-youtube-iframe

A wrapper of the Youtube-iframe API built for react native.
https://lonelycpp.github.io/react-native-youtube-iframe/
MIT License
594 stars 147 forks source link

Android devices crash when YouTubeVideoPlayer is on screen with expo-router navigation #325

Closed lucksp closed 5 months ago

lucksp commented 5 months ago

Describe the bug When I have a list of items on my home screen which navigate to other routes, and below those, I have a list of YouTube videos embedded, when I press on any of the links, on some Android Devices, like Galaxy S24, the app crashes. It works OK on older Android devices & iOS.

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

LonelyCpp commented 5 months ago

its a known issue with navigation, a few solutions are mentioned here

https://lonelycpp.github.io/react-native-youtube-iframe/navigation-crash

you can reopen this issue if it does not help