From b06605f9aa00e661d302ab58e6f58a0db5606617 Mon Sep 17 00:00:00 2001 From: maheshwaripurvesh Date: Sun, 15 Dec 2024 04:24:01 -0600 Subject: [PATCH] Update RNNBottomTabsController.m --- lib/ios/RNNBottomTabsController.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/ios/RNNBottomTabsController.m b/lib/ios/RNNBottomTabsController.m index d91005d94b..ffa3baf58c 100644 --- a/lib/ios/RNNBottomTabsController.m +++ b/lib/ios/RNNBottomTabsController.m @@ -81,6 +81,14 @@ - (void)viewWillAppear:(BOOL)animated { - (void)viewDidLoad { [super viewDidLoad]; + + if (@available(iOS 18, *)) + { + if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) + { + self.traitOverrides.horizontalSizeClass = UIUserInterfaceSizeClassUnspecified; + } + } } - (void)createTabBarItems:(NSArray *)childViewControllers {