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 { router, Tabs } from 'expo-router'; import { Home, Megaphone, PlusCircle, User } from 'lucide-react-native'; import { useEffect, useRef } from 'react'; import { useTranslation } from 'react-i18next'; import { Animated, Easing, Platform, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import { GestureHandlerRootView } from 'react-native-gesture-handler'; export default function TabsLayout() { const { isDark } = useTheme(); const { t } = useTranslation(); const rotateAnim = useRef(new Animated.Value(0)).current; useEffect(() => { Animated.loop( Animated.timing(rotateAnim, { toValue: 1, duration: 4000, easing: Easing.linear, useNativeDriver: true, }) ).start(); }, []); const rotate = rotateAnim.interpolate({ inputRange: [0, 1], outputRange: ['0deg', '360deg'], }); return ( ( {t('Bosh sahifa')} ), tabBarIcon: ({ color, focused }) => ( ), }} /> ( {t("Qo'shish")} ), tabBarIcon: ({ color, focused }) => ( ), }} /> null, tabBarItemStyle: { flex: 1.2, top: 8, }, tabBarIcon: () => ( router.push('/(dashboard)/e-service/e-services')} > {/* {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', }, centerTabInner: { width: 65, height: 65, borderRadius: 34, justifyContent: 'center', alignItems: 'center', }, centerTabLabel: { marginTop: 8, fontSize: 11, textAlign: 'center', maxWidth: 110, }, });