From 0aaed1aadd105d2a627a2b8c278d409d442c9855 Mon Sep 17 00:00:00 2001 From: Krzysztof Ligarski Date: Mon, 20 Oct 2025 14:04:03 +0200 Subject: [PATCH] set tint color for tab bar controller's view --- ios/bottom-tabs/RNSTabBarAppearanceCoordinator.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/bottom-tabs/RNSTabBarAppearanceCoordinator.mm b/ios/bottom-tabs/RNSTabBarAppearanceCoordinator.mm index a24a6f1bef..d4a31576fa 100644 --- a/ios/bottom-tabs/RNSTabBarAppearanceCoordinator.mm +++ b/ios/bottom-tabs/RNSTabBarAppearanceCoordinator.mm @@ -3,6 +3,7 @@ #import #import "RCTConvert+RNSBottomTabs.h" #import "RNSConversions.h" +#import "RNSTabBarController.h" #import "RNSTabsScreenViewController.h" @implementation RNSTabBarAppearanceCoordinator @@ -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; }