import Logo from '@/assets/images/logo.png'; import { useTheme } from '@/components/ThemeContext'; import { RefreshProvider } from '@/components/ui/RefreshContext'; import { BottomSheetModalProvider } from '@gorhom/bottom-sheet'; import { Image } from 'expo-image'; import { LinearGradient } from 'expo-linear-gradient'; import { Tabs } from 'expo-router'; import { Home, Megaphone, PlusCircle, User } from 'lucide-react-native'; import { useTranslation } from 'react-i18next'; import { Platform, StyleSheet, Text, View } from 'react-native'; import { GestureHandlerRootView } from 'react-native-gesture-handler'; export default function TabsLayout() { const { isDark } = useTheme(); const { t } = useTranslation(); return ( ( {t('Bosh sahifa')} ), tabBarIcon: ({ color, focused }) => ( ), }} /> ( {t("Qo'shish")} ), tabBarIcon: ({ color, focused }) => ( ), }} /> null, tabBarItemStyle: { flex: 1.2, top: -10, }, tabBarIcon: ({ focused }) => ( {t('Davlat xizmatlari')} ), }} /> ( {t("E'lonlar")} ), tabBarIcon: ({ color, focused }) => ( ), }} /> ( {t('Profil')} ), tabBarIcon: ({ color, focused }) => ( ), }} /> ); } const styles = StyleSheet.create({ tabLabel: { fontSize: 11, textAlign: 'center', marginTop: 4, }, iconContainer: { paddingVertical: 4, }, iconContainerActive: { transform: [{ scale: 1.05 }], }, centerTabContainer: { alignItems: 'center', justifyContent: 'center', }, centerTabGradient: { width: 72, height: 72, borderRadius: 36, justifyContent: 'center', alignItems: 'center', ...Platform.select({ ios: { shadowColor: '#3b82f6', shadowOffset: { width: 0, height: 4 }, shadowOpacity: 0.4, shadowRadius: 12, }, android: { elevation: 12, }, }), }, centerTabInner: { width: 68, height: 68, borderRadius: 34, backgroundColor: 'rgba(255, 255, 255, 0.1)', justifyContent: 'center', alignItems: 'center', }, centerTabLabel: { marginTop: 8, fontSize: 11, textAlign: 'center', maxWidth: 110, }, });