mirror of
https://github.com/status-im/react-native.git
synced 2025-02-24 15:18:10 +00:00
Summary: Created a standalone JS file for the `RCTProgressView` native component. This PR is part of #22990. Changelog: ---------- [iOS] [Changed] - Created a standalone JS file for the `RCTProgressView` native component Pull Request resolved: https://github.com/facebook/react-native/pull/23077 Differential Revision: D13760036 Pulled By: cpojer fbshipit-source-id: 0f449528b28fde089d9c6b0eb9b752dee3a85af6
35 lines
899 B
JavaScript
35 lines
899 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 {NativeComponent} from 'ReactNative';
|
|
import type {ImageSource} from 'ImageSource';
|
|
import type {ColorValue} from 'StyleSheetTypes';
|
|
import type {ViewProps} from 'ViewPropTypes';
|
|
|
|
type NativeProps = $ReadOnly<{|
|
|
...ViewProps,
|
|
progressViewStyle?: ?('default' | 'bar'),
|
|
progress?: ?number,
|
|
progressTintColor?: ?ColorValue,
|
|
trackTintColor?: ?ColorValue,
|
|
progressImage?: ?ImageSource,
|
|
trackImage?: ?ImageSource,
|
|
|}>;
|
|
|
|
type NativeProgressViewIOS = Class<NativeComponent<NativeProps>>;
|
|
|
|
module.exports = ((requireNativeComponent(
|
|
'RCTProgressView',
|
|
): any): NativeProgressViewIOS);
|