mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
a45d025385
Summary: The default itemPositioning is `automatic` (referred to `auto` in this pull request) - you can check its behaviour in the docs attached. Sometimes that value has to be modified to have more predictable appearance as described in #4136. Closes https://github.com/facebook/react-native/pull/7217 Differential Revision: D3220958 Pulled By: mkonicek fbshipit-source-id: d4bf648b16e71825cd31c06d6b6396479767d19f
41 lines
1.0 KiB
Objective-C
41 lines
1.0 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)
|
|
|
|
@end
|