mirror of
https://github.com/status-im/react-native.git
synced 2025-02-19 12:57:00 +00:00
Summary: Hi, This PR Solves this issue #3083. This PR solves the problem of default color on TabBar being always grey. Which looks great if the barTintColor is unchanged. However if we set the barTintColor to something else (like blue in example) text and icons become quite unreadable.  Commit (c206417) - Enable setting color of unselected tabs Solves this issue with a prop (unselectedTintColor) on TabBarIOS to which you just pass a color like you can for barTintColor and tintColor. This leaves us with a result that is on second picture. Notice the color of text on tabs.  Or change it to yellow for demonstrating purposes  2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@interface RCTTabBar : UIView
|
|
|
|
@property (nonatomic, strong) UIColor *unselectedTintColor;
|
|
@property (nonatomic, strong) UIColor *tintColor;
|
|
@property (nonatomic, strong) UIColor *barTintColor;
|
|
@property (nonatomic, assign) BOOL translucent;
|
|
|
|
@end
|