diff --git a/src/Splash.tsx b/src/Splash.tsx index fc70bb3b..0f4c8361 100644 --- a/src/Splash.tsx +++ b/src/Splash.tsx @@ -2,6 +2,7 @@ import React, {useCallback, useEffect} from 'react' import {View, StyleSheet, Image as RNImage} from 'react-native' import * as SplashScreen from 'expo-splash-screen' import {Image} from 'expo-image' +import {platformApiLevel} from 'expo-device' import Animated, { interpolate, runOnJS, @@ -136,34 +137,51 @@ export function Splash(props: React.PropsWithChildren) { /> )} - - + {platformApiLevel && platformApiLevel <= 27 ? ( + <> + {!isAnimationComplete && ( + + )} + + {props.children} - }> - {!isAnimationComplete && ( - - )} - - - {props.children} - - + + ) : ( + + + + }> + {!isAnimationComplete && ( + + )} + + {props.children} + + + )} ) }