// Bottom tab bar for the standalone app: // backpack → your cards (gallery) // money bag → collectible cards // robot → work-agent cards // cog → settings import { MaterialCommunityIcons } from "@expo/vector-icons"; import { Redirect, Tabs } from "expo-router"; import { StyleSheet } from "react-native"; import { useSafeAreaInsets } from "react-native-safe-area-context"; import { useProfileStore } from "../../src/stores/profileStore"; type IconName = keyof typeof MaterialCommunityIcons.glyphMap; function tabIcon(name: IconName) { return ({ color, size }: { color: string; size: number }) => ( ); } export default function TabsLayout() { const insets = useSafeAreaInsets(); const onboarded = useProfileStore((s) => s.onboarded); // First-run users go to onboarding (MMKV hydrates synchronously, so this is // correct on the first render — no flash). if (!onboarded) return ; return ( ); }