/** * TabataFit Root Layout * Expo Router v3 + Inter font loading */ import { useCallback } from 'react' import { Stack } from 'expo-router' import { StatusBar } from 'expo-status-bar' import { View } from 'react-native' import * as SplashScreen from 'expo-splash-screen' import { useFonts, Inter_400Regular, Inter_500Medium, Inter_600SemiBold, Inter_700Bold, Inter_900Black, } from '@expo-google-fonts/inter' import { DARK } from '@/src/shared/constants/colors' SplashScreen.preventAutoHideAsync() export default function RootLayout() { const [fontsLoaded] = useFonts({ Inter_400Regular, Inter_500Medium, Inter_600SemiBold, Inter_700Bold, Inter_900Black, }) const onLayoutRootView = useCallback(async () => { if (fontsLoaded) { await SplashScreen.hideAsync() } }, [fontsLoaded]) if (!fontsLoaded) { return null } return ( ) }