mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
4890d50edd
commit
2ab750f7bb
@@ -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,
|
||||
(@{
|
||||
|
||||
Reference in New Issue
Block a user