An ATproto social media client -- with an independent Appview.
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}