import { Tabs } from "expo-router/js-tabs"; import { Redirect } from "expo-router"; import { View, ActivityIndicator } from "react-native"; import { HapticTab } from "@/components/misc/haptic-tab"; import { IconSymbol } from "@/components/ui/icon-symbol"; import { Colors } from "@/constants/theme"; import { useAuth } from "@/context/AuthContext"; export default function TabLayout() { const { isAuthenticated, isLoading } = useAuth(); if (isLoading) { return ( ); } if (!isAuthenticated) { return ; } return ( ( ), tabBarButton: (props) => , }} /> ( ), tabBarButton: (props) => , }} /> ( ), tabBarButton: (props) => , }} /> ( ), tabBarButton: (props) => , }} /> ( ), tabBarButton: (props) => , }} /> ); }