Skip to content

Commit

Permalink
[ios] Adaptive fullscreen in landscape by device orientation (#1862)
Browse files Browse the repository at this point in the history
* update UIInterfaceOrientation in fullscreen

* update code
  • Loading branch information
r0b0t3d authored May 15, 2020
1 parent 0b914ef commit c9096d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Video/RCTVideoPlayerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c9096d1

Please sign in to comment.