import { Ionicons, MaterialCommunityIcons } from "@expo/vector-icons"; import { Tabs, Redirect } from "expo-router"; import { useAuth } from ".././context/auth-context"; export default function TabLayout() { const { isAuthenticated, isLoading } = useAuth(); // If not authenticated and not loading, redirect to welcome if (!isLoading && !isAuthenticated) { return ; } return ( ( ), }} /> ( ), }} /> ( ), }} /> ( ), }} /> ); }