forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
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 facebook#22990 Changelog: ---------- [Android][Changed] - move the call to requireNativeComponent from ProgressBarAndroid.android.js to ProgressBarAndroidNativeComponent.js Pull Request resolved: facebook#23068 Differential Revision: D13760445 Pulled By: cpojer fbshipit-source-id: b74ff42c6f207803de70be549a13487d59125a66
- Loading branch information
1 parent
499da14
commit 148dc31
Showing
2 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
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
33 changes: 33 additions & 0 deletions
33
Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.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,33 @@ | ||
/** | ||
* 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. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const requireNativeComponent = require('requireNativeComponent'); | ||
|
||
import type {ViewProps} from 'ViewPropTypes'; | ||
import type {NativeComponent} from 'ReactNative'; | ||
|
||
type NativeProps = $ReadOnly<{| | ||
...ViewProps, | ||
styleAttr?: string, | ||
typeAttr?: string, | ||
indeterminate: boolean, | ||
progress?: number, | ||
animating?: ?boolean, | ||
color?: ?string, | ||
testID?: ?string, | ||
|}>; | ||
|
||
type ProgressBarAndroidType = Class<NativeComponent<NativeProps>>; | ||
|
||
module.exports = ((requireNativeComponent( | ||
'AndroidProgressBar', | ||
): any): ProgressBarAndroidType); |