mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook Github Bot
parent
6c18069a28
commit
bf27799ba8
@@ -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);
|
||||
Reference in New Issue
Block a user