-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: #23118 Differential Revision: D13781428 Pulled By: cpojer fbshipit-source-id: 3034c7db127a992c5757d70e22d98ee9acf4847b
- Loading branch information
1 parent
62395d0
commit 70227fe
Showing
2 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
Libraries/Components/TabBarIOS/RCTTabBarNativeComponent.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters