import { Tabs } from 'expo-router'; import { Ionicons } from '@expo/vector-icons'; import { View, StyleSheet, Platform, useWindowDimensions } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; import { colors, shadows } from '../../constants/theme'; const TABLET_MIN_WIDTH = 768; function ScanIcon({ color, size }: { color: string; size: number }) { return ( ); } export default function TabLayout() { const insets = useSafeAreaInsets(); const { width } = useWindowDimensions(); const isTablet = width >= TABLET_MIN_WIDTH; const bottomPadding = Platform.OS === 'ios' ? insets.bottom : 8; return ( ( ), }} /> ( ), }} /> , tabBarLabel: () => null, }} /> ( ), }} /> ( ), }} /> ); } const styles = StyleSheet.create({ tabBar: { backgroundColor: colors.card, borderTopColor: colors.border, paddingTop: 8, }, tabBarTablet: { backgroundColor: colors.card, borderTopColor: colors.border, paddingTop: 10, paddingHorizontal: 24, }, tabBarLabel: { fontSize: 11, fontWeight: '500', }, tabBarLabelTablet: { fontSize: 13, }, header: { backgroundColor: colors.card, shadowColor: '#000', shadowOffset: { width: 0, height: 1 }, shadowOpacity: 0.05, shadowRadius: 4, elevation: 1, }, headerTitle: { color: colors.text, fontWeight: '600', fontSize: 17, }, headerTitleTablet: { fontSize: 20, }, fabContainer: { position: 'absolute', top: -16, alignItems: 'center', }, fab: { width: 52, height: 52, borderRadius: 26, backgroundColor: colors.scanButton, alignItems: 'center', justifyContent: 'center', }, });