import { type FC } from 'react'; import Lottie from 'lottie-react-native'; import { Dimensions, type StyleProp, type TextStyle, View } from 'react-native'; import { withTheme, useTheme } from '../../core/theming'; import type { Theme } from '../../utils/types'; import TTypography from '../TTypography/TTypography'; import { TypographyVariant } from '../TTypography/TTypographyEnum'; import { moderateScale } from 'react-native-size-matters'; import { defaultScale } from '../../utils/Common'; interface Prop { sourceUri: string; autoPlay?: boolean; loop?: boolean; backgroundColor?: string; theme: Theme; textStyle?: StyleProp; title?: string; } const TAnimatedPreloader: FC = ({ sourceUri, autoPlay = true, loop = true, backgroundColor, textStyle, title, }): any => { const { colors } = useTheme(); const bgColor = backgroundColor ? backgroundColor : colors.backgroundLayout; const { width, height } = Dimensions.get('screen'); return ( ); }; export default withTheme(TAnimatedPreloader);