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