File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 33#import < React/RCTImageLoader.h>
44#import " RCTConvert+RNSBottomTabs.h"
55#import " RNSConversions.h"
6+ #import " RNSTabBarController.h"
67#import " RNSTabsScreenViewController.h"
78
89@implementation RNSTabBarAppearanceCoordinator
@@ -19,6 +20,10 @@ - (void)updateAppearanceOfTabBar:(nullable UITabBar *)tabBar
1920 // Step 1 - configure host-specific appearance
2021 tabBar.tintColor = hostComponentView.tabBarTintColor ;
2122
23+ // Set tint color for iPadOS tab bar. This is the official way recommended by Apple:
24+ // https://developer.apple.com/forums/thread/761056?answerId=798245022#798245022
25+ hostComponentView.controller .view .tintColor = hostComponentView.tabBarTintColor ;
26+
2227 if (tabScreenCtrls == nil ) {
2328 return ;
2429 }
You can’t perform that action at this time.
0 commit comments