Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ios/bottom-tabs/RNSTabBarAppearanceCoordinator.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#import <React/RCTImageLoader.h>
#import "RCTConvert+RNSBottomTabs.h"
#import "RNSConversions.h"
#import "RNSTabBarController.h"
#import "RNSTabsScreenViewController.h"

@implementation RNSTabBarAppearanceCoordinator
Expand All @@ -19,6 +20,10 @@ - (void)updateAppearanceOfTabBar:(nullable UITabBar *)tabBar
// Step 1 - configure host-specific appearance
tabBar.tintColor = hostComponentView.tabBarTintColor;

// Set tint color for iPadOS tab bar. This is the official way recommended by Apple:
// https://developer.apple.com/forums/thread/761056?answerId=798245022#798245022
hostComponentView.controller.view.tintColor = hostComponentView.tabBarTintColor;

if (tabScreenCtrls == nil) {
return;
}
Expand Down
Loading