import { Tabs } from "expo-router/tabs"; import { Redirect } from "expo-router"; import { View, ActivityIndicator, StatusBar, } from "react-native"; import { LinearGradient } from "expo-linear-gradient"; import { Ionicons } from "@expo/vector-icons"; import { useAuth } from "@/src/contexts/AuthContext"; import { tw, theme, MyTouchableOpacity, MyText } from "common-ui"; import ProfileChecker from "@/components/ProfileChecker"; import HomeIcon from "@/components/icons/HomeIcon"; import StoresIcon from "@/components/icons/StoresIcon"; import OrderAgainIcon from "@/components/icons/OrderAgainIcon"; import MeIcon from "@/components/icons/MeIcon"; import { useAppStore } from "@/src/store/appStore"; export default function Layout() { const { isAuthenticated, isLoading } = useAuth(); const hideTabsNav = useAppStore((state) => state.hideTabsNav); const shouldHideTabs = Object.values(hideTabsNav).some(Boolean); if (isLoading) { return ( ); } return ( <> {/* */} ( ), }} /> ( ), }} /> null, tabBarIcon: () => null, tabBarButton: (props) => ( Flash Delivery ), }} /> ( ), }} /> ( ), }} /> ); }