import { type FC } from 'react'; import { View, StyleSheet, Animated } from 'react-native'; import { moderateScale } from 'react-native-size-matters'; import { defaultScale } from '../../utils/Common'; import { withTheme, useTheme } from '../../core/theming'; import type { Theme } from '../../utils/types'; import TTypography from '../TTypography/TTypography'; import { TypographyVariant } from '../TTypography/TTypographyEnum'; interface Props { percentage: string; completedColor?: string; backgroundColor?: string; height?: number; borderRadius?: number; theme: Theme; animStyle?: any; } const TProgressBar: FC = ({ percentage, completedColor, backgroundColor, height, borderRadius, animStyle, }): any => { const { colors } = useTheme(); return ( {percentage} ); }; const styles = StyleSheet.create({ container: { flexDirection: 'row', width: '100%', }, progressBar: { position: 'absolute', top: 0, left: 0, bottom: 0, right: 0, }, }); export default withTheme(TProgressBar);