import React from 'react'; import { Tabs, Redirect } from 'expo-router'; import { View, TouchableOpacity, StyleSheet } from 'react-native'; import { Ionicons } from '@expo/vector-icons'; import { useAuthStore } from '@store/authStore'; import { colors, radius, spacing } from '@shared/theme'; /** * Layout do app autenticado com Bottom Tab Navigator. * 4 abas + FAB central: Início | Estoque | [+] | Config | Perfil */ export default function AppLayout(): React.ReactElement { const { isAuthenticated } = useAuthStore(); if (!isAuthenticated) { return ; } return ( ( ), }} /> ( ), }} /> ( ), tabBarButton: (props) => ( ), }} /> ( ), }} /> ( ), }} /> ); } const styles = StyleSheet.create({ tabBar: { backgroundColor: colors.bgSurface, borderTopColor: colors.border, borderTopWidth: 1, height: 72, paddingBottom: spacing[2], }, tabLabel: { fontSize: 11, fontFamily: 'Inter', }, fabWrapper: { flex: 1, alignItems: 'center', justifyContent: 'center', top: -8, }, fab: { width: 56, height: 56, borderRadius: radius.full, backgroundColor: colors.accent, alignItems: 'center', justifyContent: 'center', }, });