tangled mirror of catsky-馃惐 Soothing soft social-app fork with all the niche toggles! (Unofficial); for issues and PRs please put them on github:NekoDrone/catsky-social
at main 17 lines 334 B view raw
1import {useEffect} from 'react' 2import * as SplashScreen from 'expo-splash-screen' 3 4type Props = { 5 isReady: boolean 6} 7 8export function Splash({isReady, children}: React.PropsWithChildren<Props>) { 9 useEffect(() => { 10 if (isReady) { 11 SplashScreen.hideAsync() 12 } 13 }, [isReady]) 14 if (isReady) { 15 return children 16 } 17}