1/** 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * 4 * This source code is licensed under the MIT license found in the 5 * LICENSE file in the root directory of this source tree. 6 * 7 * @format 8 */ 9 10import type * as React from 'react'; 11import {Constructor} from '../../../types/private/Utilities'; 12import {ImageURISource} from '../../Image/ImageSource'; 13import {NativeMethods} from '../../../types/public/ReactNativeTypes'; 14import {ColorValue} from '../../StyleSheet/StyleSheet'; 15import {ViewProps} from '../View/ViewPropTypes'; 16 17/** 18 * @see https://reactnative.dev/docs/progressviewios 19 * @see ProgressViewIOS.ios.js 20 */ 21export interface ProgressViewIOSProps extends ViewProps { 22 /** 23 * The progress bar style. 24 */ 25 progressViewStyle?: 'default' | 'bar' | undefined; 26 27 /** 28 * The progress value (between 0 and 1). 29 */ 30 progress?: number | undefined; 31 32 /** 33 * The tint color of the progress bar itself. 34 */ 35 progressTintColor?: ColorValue | undefined; 36 37 /** 38 * The tint color of the progress bar track. 39 */ 40 trackTintColor?: ColorValue | undefined; 41 42 /** 43 * A stretchable image to display as the progress bar. 44 */ 45 progressImage?: ImageURISource | ImageURISource[] | undefined; 46 47 /** 48 * A stretchable image to display behind the progress bar. 49 */ 50 trackImage?: ImageURISource | ImageURISource[] | undefined; 51} 52 53declare class ProgressViewIOSComponent extends React.Component<ProgressViewIOSProps> {} 54declare const ProgressViewIOSBase: Constructor<NativeMethods> & 55 typeof ProgressViewIOSComponent; 56/** 57 * ProgressViewIOS has been extracted from react-native core and will be removed in a future release. 58 * It can now be installed and imported from `@react-native-community/progress-view` instead of 'react-native'. 59 * @see https://github.com/react-native-community/progress-view 60 * @deprecated 61 */ 62export class ProgressViewIOS extends ProgressViewIOSBase {} 63