import React from 'react'; import { Animated } from 'react-native'; import { SpinnerComponent } from '../../components'; import type { AnimatedViewProps } from './AnimatedTypes'; import { SpinnerButtonStyle } from '../../styles'; const AnimatedView: React.FC = ({ animatedChildHideStyle, animatedChildShowStyle, children, customSpinnerComponent, height, size, spinnerColor, spinnerType, indicatorCount, spinnerOptions, }: AnimatedViewProps) => { const isCustomeSpinner: boolean = customSpinnerComponent !== null && customSpinnerComponent !== undefined; return ( <> {children} {isCustomeSpinner && customSpinnerComponent} {!isCustomeSpinner && ( )} ); }; export default AnimatedView;