Skip to content

Commit 12e4eac

Browse files
authored
fix(iOS, Stack): Fix enum conversion for landscape right (#3474)
## Description There was a typo, mask should be used instead of UIDeviceOrientation value. Fixes: #3473 ## Test code and steps to reproduce `Orientation.tsx` ## Checklist - [x] Included code example that can be used to test this change - [x] Ensured that CI passes
1 parent 3accd66 commit 12e4eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/conversion/RNSConversions.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RNSOrientation RNSOrientationFromUIInterfaceOrientationMask(UIInterfaceOrientati
4343
return RNSOrientationLandscape;
4444
case UIInterfaceOrientationMaskLandscapeLeft:
4545
return RNSOrientationLandscapeLeft;
46-
case UIInterfaceOrientationLandscapeRight:
46+
case UIInterfaceOrientationMaskLandscapeRight:
4747
return RNSOrientationLandscapeRight;
4848
case UIInterfaceOrientationMaskPortraitUpsideDown:
4949
return RNSOrientationPortraitDown;

0 commit comments

Comments
 (0)