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
603 stars 153 forks source link

White modal blocking screen when fullscreen followed by landscape rotation #346

Closed sraut1 closed 3 weeks ago

sraut1 commented 1 month ago

Describe the bug Problem: Platform: iOS When using the YouTubePlayer component with expo modal, upon fullscreen and landscape rotation creates a persistent white modal blocks bottom half portion of the screen.

The white modal is only triggered when the video is in fullscreen mode and the device is rotated to landscape

To Reproduce Steps to reproduce the behavior:

  1. Play a YouTube video using the YouTubePlayer component.
  2. Switch the video to fullscreen mode.
  3. Rotate the device to landscape orientation while in fullscreen mode.
  4. Rotate back to portrait mode
  5. Exit fullscreen mode.

A white modal appears, occupying a bottom half portion of the screen. The modal is not dismissible, obstructing the view and disrupting user interaction.

Expected behavior Exiting fullscreen mode should not trigger any additional modal. The screen should return to the original state before fullscreen was activated, without any obstructions.

Screenshots

Screenshot 2024-08-07 at 2 22 33 PM

https://github.com/user-attachments/assets/ec9180e8-8623-4b58-8ee6-2d58b2538684

Smartphone (please complete the following information):

Additional context The white modal is only triggered when the video is in fullscreen mode and the device is rotated to landscape

sraut1 commented 1 month ago

@LonelyCpp

sraut1 commented 3 weeks ago

This bug is not related to react-native-youtube-iframe but some other library we are using