fix(ios): fix fullscreen view controller ANR (#3952)
- ANR occurred setFullscreen(true) when view controller presenting
This commit is contained in:
		| @@ -968,7 +968,8 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH | |||||||
|  |  | ||||||
|     @objc |     @objc | ||||||
|     func setFullscreen(_ fullscreen: Bool) { |     func setFullscreen(_ fullscreen: Bool) { | ||||||
|         if fullscreen && !_fullscreenPlayerPresented && _player != nil { |         var alreadyFullscreenPresented = _presentingViewController?.presentedViewController != nil | ||||||
|  |         if fullscreen && !_fullscreenPlayerPresented && _player != nil && !alreadyFullscreenPresented { | ||||||
|             // Ensure player view controller is not null |             // Ensure player view controller is not null | ||||||
|             // Controls will be displayed even if it is disabled in configuration |             // Controls will be displayed even if it is disabled in configuration | ||||||
|             if _playerViewController == nil { |             if _playerViewController == nil { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user