react-native-simple-circular-progress
Version:
A simple circular progress indicator component for React Native.
22 lines (21 loc) • 667 B
TypeScript
import React from 'react';
import { StyleProp, ViewStyle } from 'react-native';
type ColorPoint = [number, string];
export interface CircularProgressProps {
style?: StyleProp<ViewStyle>;
size: number;
percent?: number;
gapAngle?: number;
backgroundBarColor?: string;
progressBarWidth?: number;
progressBarColor?: string | ColorPoint[];
progressBarOpacity?: number;
progressFillColor?: string;
scaleAngles?: number[];
scaleWidth?: number;
scaleColor?: string;
scaleOpacity?: number;
svgExtraProps?: Record<string, any>;
children?: React.ReactElement | ((props: any) => React.ReactElement<any>);
}
export {};