react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js
Rafael Lincoln bf27799ba8 ProgressBarAndroid (#23068)
Summary:
his PR is related to #22990

Changelog:
----------

[Android][Changed] - move the call to requireNativeComponent from ProgressBarAndroid.android.js to ProgressBarAndroidNativeComponent.js
Pull Request resolved: https://github.com/facebook/react-native/pull/23068

Differential Revision: D13760445

Pulled By: cpojer

fbshipit-source-id: b74ff42c6f207803de70be549a13487d59125a66
2019-01-22 02:48:35 -08:00

34 lines
768 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.
*
* @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);