diff --git a/touchfluffytail.club/app.json b/touchfluffytail.club/app.json index f8879da..15a5a1d 100644 --- a/touchfluffytail.club/app.json +++ b/touchfluffytail.club/app.json @@ -1,7 +1,7 @@ { "expo": { "name": "Touch Fluffy Tail", - "slug": "touchgrassapp", + "slug": "touchfluffytail", "version": "1.0.0", "orientation": "portrait", "icon": "./assets/images/icon.png", diff --git a/touchfluffytail.club/src/app/_layout.tsx b/touchfluffytail.club/src/app/_layout.tsx index 590a4e5..f304c5d 100644 --- a/touchfluffytail.club/src/app/_layout.tsx +++ b/touchfluffytail.club/src/app/_layout.tsx @@ -1,5 +1,5 @@ import { SplashScreen, Stack } from "expo-router"; -import { useEffect } from "react"; +import { useCallback } from "react"; import { View } from "react-native"; import { AuthProvider, useAuth } from "../components/SessionProvider"; @@ -16,12 +16,14 @@ export default function RootLayout() { function RootNavigator() { const { isLoading } = useAuth(); - useEffect(() => { - if (!isLoading) void SplashScreen.hideAsync(); - }, [isLoading]); + const handleAppLoaded = useCallback(() => { + void SplashScreen.hideAsync(); + }, []); + + if (isLoading) return null; return ( - +