import { useAuth } from '@/components/AuthProvider'; import { Redirect } from 'expo-router'; import { ActivityIndicator, View } from 'react-native'; export default function Index() { const { isAuthenticated, isLoading } = useAuth(); if (isLoading) { return ( ); } if (isAuthenticated) { return ; } return ; }