From b86d7fbb27f6758d1c90b05b034d8f27fbf039c3 Mon Sep 17 00:00:00 2001 From: Alberto Duarte Delgado Date: Tue, 21 Apr 2026 12:41:25 +0100 Subject: fix(layout): respetar safe area en dispositivos --- src/app/(protected)/(tabs)/_layout.tsx | 7 +++++-- src/providers/AppProviders.tsx | 9 ++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'src') 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 ( {children}; + return ( + + + {children} + + + ); } -- cgit v1.2.3-54-g00ecf