mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES Reworks Expo React native social to use appropriate auth methods and restructures to use external code. --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
15 lines
294 B
TypeScript
15 lines
294 B
TypeScript
import { useAuthContext } from '@/hooks/use-auth-context'
|
|
import { SplashScreen } from 'expo-router'
|
|
|
|
SplashScreen.preventAutoHideAsync()
|
|
|
|
export function SplashScreenController() {
|
|
const { isLoading } = useAuthContext()
|
|
|
|
if (!isLoading) {
|
|
SplashScreen.hideAsync()
|
|
}
|
|
|
|
return null
|
|
}
|