mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
70227fec66
Summary: His PR is related to #22990 Changelog: ---------- [IOS][Changed] - move the call to requireNativeComponent from TabBarIOS.ios.js to RCTTabBarNativeComponent.js Pull Request resolved: https://github.com/facebook/react-native/pull/23118 Differential Revision: D13781428 Pulled By: cpojer fbshipit-source-id: 3034c7db127a992c5757d70e22d98ee9acf4847b
36 lines
895 B
JavaScript
36 lines
895 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @flow
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const requireNativeComponent = require('requireNativeComponent');
|
|
|
|
import type {ViewProps} from 'ViewPropTypes';
|
|
import type {ColorValue} from 'StyleSheetTypes';
|
|
|
|
import type {NativeComponent} from 'ReactNative';
|
|
|
|
type NativeProps = $ReadOnly<{|
|
|
...ViewProps,
|
|
unselectedTintColor?: ColorValue,
|
|
tintColor?: ColorValue,
|
|
unselectedItemTintColor?: ColorValue,
|
|
barTintColor?: ColorValue,
|
|
barStyle?: ?('default' | 'black'),
|
|
translucent?: ?boolean,
|
|
itemPositioning?: ?('fill' | 'center' | 'auto'),
|
|
|}>;
|
|
|
|
type RCTTabBarNativeType = Class<NativeComponent<NativeProps>>;
|
|
|
|
module.exports = ((requireNativeComponent(
|
|
'RCTTabBar',
|
|
): any): RCTTabBarNativeType);
|