import { Tabs } from 'expo-router';
import { Ionicons } from '@expo/vector-icons';
import { View, StyleSheet, useWindowDimensions } from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { useThemeContext } from '../../components/ThemeProvider';
import { shadows } from '../../constants/theme';
const TABLET_MIN_WIDTH = 768;
// Standard Android navigation bar heights in dp
const ANDROID_NAV_BAR_HEIGHT = 48;
function ScanIcon({ size }: { size: number }) {
return (
);
}
export default function TabLayout() {
const insets = useSafeAreaInsets();
const { width } = useWindowDimensions();
const isTablet = width >= TABLET_MIN_WIDTH;
const { colors } = useThemeContext();
// Use safe area insets if available, otherwise use standard Android nav bar height
const bottomPadding = insets.bottom > 0 ? insets.bottom : ANDROID_NAV_BAR_HEIGHT;
return (
(
),
}}
/>
(
),
}}
/>
,
tabBarLabel: () => null,
}}
/>
(
),
}}
/>
(
),
}}
/>
);
}
const styles = StyleSheet.create({
fabContainer: {
position: 'absolute',
top: -16,
alignItems: 'center',
},
fab: {
width: 52,
height: 52,
borderRadius: 26,
backgroundColor: '#2b5bb5',
alignItems: 'center',
justifyContent: 'center',
},
});