Changing tab bar controller orientation to portrait

Summary:
Applying orientation from navigationOptions to the TabBarController

## Changelog
[iOS][Added] - Added conversion helper for UIInterfaceOrientationMask to RCTConvert

Reviewed By: philIip

Differential Revision: D44553533

fbshipit-source-id: e57c68c56f1184346bf02f5a915d7722660902ff
This commit is contained in:
Enrico Bern Hardy Tanuwidjaja
2023-03-31 14:06:28 -07:00
committed by Facebook GitHub Bot
parent 4890d50edd
commit 2ab750f7bb
2 changed files with 14 additions and 0 deletions
@@ -72,6 +72,8 @@ typedef NSURL RCTFileURL;
+ (UIKeyboardAppearance)UIKeyboardAppearance:(id)json;
+ (UIReturnKeyType)UIReturnKeyType:(id)json;
+ (UIUserInterfaceStyle)UIUserInterfaceStyle:(id)json API_AVAILABLE(ios(12));
+ (UIInterfaceOrientationMask)UIInterfaceOrientationMask:(NSString *)orientation;
#if !TARGET_OS_TV
+ (UIDataDetectorTypes)UIDataDetectorTypes:(id)json;
#endif
@@ -511,6 +511,18 @@ RCT_ENUM_CONVERTER(
UIUserInterfaceStyleUnspecified,
integerValue)
RCT_ENUM_CONVERTER(
UIInterfaceOrientationMask,
(@{
@"ALL" : @(UIInterfaceOrientationMaskAll),
@"PORTRAIT" : @(UIInterfaceOrientationMaskPortrait),
@"LANDSCAPE" : @(UIInterfaceOrientationMaskLandscape),
@"LANDSCAPE_LEFT" : @(UIInterfaceOrientationMaskLandscapeLeft),
@"LANDSCAPE_RIGHT" : @(UIInterfaceOrientationMaskLandscapeRight),
}),
NSNotFound,
unsignedIntegerValue)
RCT_ENUM_CONVERTER(
UIViewContentMode,
(@{