mirror of
https://github.com/status-im/react-native.git
synced 2025-02-24 23:28:12 +00:00
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
34 lines
768 B
JavaScript
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);
|