13 lines
242 B
TypeScript
13 lines
242 B
TypeScript
import { SplashScreen } from 'expo-router'
|
|
import { useSession } from './ctx'
|
|
|
|
export function SplashScreenController() {
|
|
const { isLoading } = useSession()
|
|
|
|
if (!isLoading) {
|
|
SplashScreen.hideAsync()
|
|
}
|
|
|
|
return null
|
|
}
|