diff options
Diffstat (limited to 'src/app/(protected)')
| -rw-r--r-- | src/app/(protected)/(tabs)/_layout.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/app/(protected)/(tabs)/_layout.tsx b/src/app/(protected)/(tabs)/_layout.tsx index c19cbff..a211459 100644 --- a/src/app/(protected)/(tabs)/_layout.tsx +++ b/src/app/(protected)/(tabs)/_layout.tsx @@ -1,12 +1,15 @@ import { Tabs } from 'expo-router'; import { Feather } from '@expo/vector-icons'; import { MaterialIcons } from '@expo/vector-icons'; +import { useSafeAreaInsets } from 'react-native-safe-area-context'; import theme from '@/theme'; // accesos cortos al theme de estilos const { colors, typography, fontWeight, layout } = theme; export default function TabsLayout() { + const insets = useSafeAreaInsets(); + return ( <Tabs screenOptions={{ @@ -18,8 +21,8 @@ export default function TabsLayout() { fontWeight: fontWeight.regular, }, tabBarStyle: { - height: layout.tabBarHeight, - paddingBottom: 2, + height: layout.tabBarHeight + insets.bottom, + paddingBottom: Math.max(insets.bottom, 2), paddingTop: 6, // ancho acotado igual que el container del home width: '100%', |