very basics of auth state - not actually authenticating anything right now....
This commit is contained in:
12
app/splash.tsx
Normal file
12
app/splash.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { SplashScreen } from 'expo-router'
|
||||
import { useSession } from './ctx'
|
||||
|
||||
export function SplashScreenController() {
|
||||
const { isLoading } = useSession()
|
||||
|
||||
if (!isLoading) {
|
||||
SplashScreen.hideAsync()
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
Reference in New Issue
Block a user