/**
* Main tab navigation layout
*/
import { Tabs } from 'expo-router';
import {
LayoutDashboard,
Activity,
Users,
Bell,
Settings,
type LucideIcon,
} from 'lucide-react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { colors } from '@/lib/theme';
import { ServerSelector } from '@/components/ServerSelector';
interface TabIconProps {
icon: LucideIcon;
focused: boolean;
}
function TabIcon({ icon: Icon, focused }: TabIconProps) {
return (
);
}
export default function TabLayout() {
const insets = useSafeAreaInsets();
// Dynamic tab bar height: base height + safe area bottom inset
const tabBarHeight = 60 + insets.bottom;
return (
,
tabBarLabel: 'Dashboard',
tabBarIcon: ({ focused }) => (
),
}}
/>
,
tabBarLabel: 'Activity',
tabBarIcon: ({ focused }) => (
),
}}
/>
,
tabBarLabel: 'Users',
tabBarIcon: ({ focused }) => ,
}}
/>
,
tabBarLabel: 'Alerts',
tabBarIcon: ({ focused }) => ,
}}
/>
(
),
}}
/>
);
}