this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at e28f6d2f370b4e882ed6f23d08ca0f8d94dbac5f 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}