From c9096d16f7a961ed26f73d88a0bdefe8c42a1c47 Mon Sep 17 00:00:00 2001 From: Tuan Luong Date: Fri, 15 May 2020 19:48:15 +0700 Subject: [PATCH] [ios] Adaptive fullscreen in landscape by device orientation (#1862) * update UIInterfaceOrientation in fullscreen * update code --- ios/Video/RCTVideoPlayerViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Video/RCTVideoPlayerViewController.m b/ios/Video/RCTVideoPlayerViewController.m index 548a06ceee..8319f6d859 100644 --- a/ios/Video/RCTVideoPlayerViewController.m +++ b/ios/Video/RCTVideoPlayerViewController.m @@ -28,7 +28,7 @@ - (UIInterfaceOrientationMask)supportedInterfaceOrientations { - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { if ([self.preferredOrientation.lowercaseString isEqualToString:@"landscape"]) { - return UIInterfaceOrientationLandscapeRight; + return UIInterfaceOrientationLandscapeLeft | UIInterfaceOrientationLandscapeRight; } else if ([self.preferredOrientation.lowercaseString isEqualToString:@"portrait"]) { return UIInterfaceOrientationPortrait;