mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
837814240b
Summary: **motivation:** make possible to use new tab bar property. ![1475603157804](https://cloud.githubusercontent.com/assets/1488195/19085757/8b7cc8a4-8a7c-11e6-82c7-7c76313fb545.jpg) It is not working for previous versions but not failing. https://developer.apple.com/reference/uikit/uitabbar/1648949-unselecteditemtintcolor Closes https://github.com/facebook/react-native/pull/10241 Differential Revision: D4168046 Pulled By: mmmulani fbshipit-source-id: aa0c9b36cbdbc50a9a60bbbc658355c3066ba1a5
42 lines
1.1 KiB
Objective-C
42 lines
1.1 KiB
Objective-C
/**
|
|
* Copyright (c) 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 "RCTTabBarManager.h"
|
|
|
|
#import "RCTBridge.h"
|
|
#import "RCTTabBar.h"
|
|
|
|
@implementation RCTConvert (UITabBar)
|
|
|
|
RCT_ENUM_CONVERTER(UITabBarItemPositioning, (@{
|
|
@"fill" : @(UITabBarItemPositioningFill),
|
|
@"auto" : @(UITabBarItemPositioningAutomatic),
|
|
@"center" : @(UITabBarItemPositioningCentered)
|
|
}), UITabBarItemPositioningAutomatic, integerValue)
|
|
|
|
@end
|
|
|
|
@implementation RCTTabBarManager
|
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
- (UIView *)view
|
|
{
|
|
return [RCTTabBar new];
|
|
}
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(unselectedTintColor, UIColor)
|
|
RCT_EXPORT_VIEW_PROPERTY(tintColor, UIColor)
|
|
RCT_EXPORT_VIEW_PROPERTY(barTintColor, UIColor)
|
|
RCT_EXPORT_VIEW_PROPERTY(translucent, BOOL)
|
|
RCT_EXPORT_VIEW_PROPERTY(itemPositioning, UITabBarItemPositioning)
|
|
RCT_EXPORT_VIEW_PROPERTY(unselectedItemTintColor, UIColor)
|
|
|
|
@end
|