Skip to content

Commit

Permalink
Update RNNBottomTabsController.m
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshwaripurvesh authored Dec 15, 2024
1 parent efee2bd commit b06605f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/ios/RNNBottomTabsController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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<UIViewController *> *)childViewControllers {
Expand Down

0 comments on commit b06605f

Please sign in to comment.