diff --git a/src/components/Lottie/index.tsx b/src/components/Lottie/index.tsx index a9b223a87a54..dd46b33a8400 100644 --- a/src/components/Lottie/index.tsx +++ b/src/components/Lottie/index.tsx @@ -6,6 +6,7 @@ import {View} from 'react-native'; import type DotLottieAnimation from '@components/LottieAnimations/types'; import useAppState from '@hooks/useAppState'; import useNetwork from '@hooks/useNetwork'; +import useSplashScreen from '@hooks/useSplashScreen'; import useThemeStyles from '@hooks/useThemeStyles'; type Props = { @@ -14,6 +15,7 @@ type Props = { function Lottie({source, webStyle, ...props}: Props, ref: ForwardedRef) { const appState = useAppState(); + const {isSplashHidden} = useSplashScreen(); const styles = useThemeStyles(); const [isError, setIsError] = React.useState(false); @@ -27,14 +29,15 @@ function Lottie({source, webStyle, ...props}: Props, ref: ForwardedRef