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