From 648759e5bf865a72a6487ee0ba56cd5eb075a978 Mon Sep 17 00:00:00 2001 From: Pedro Gomes Date: Tue, 14 Jan 2025 23:31:04 -0300 Subject: [PATCH] :bug: fix: Safe Area Implement --- src/routes/index.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 01d53d6..c0c0ff1 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -2,21 +2,29 @@ import React from 'react'; import PrivateRoutes from './AppStack/private.routes'; import PublicRoutes from './AppStack/public.routes'; import useAuth from '@hooks/useAuth'; -import { NavigationContainer } from '@react-navigation/native'; -import { InputVendedor } from '../screens/MyTeam/styles'; +import { SafeAreaView, StyleSheet, Platform } from 'react-native'; + const Routes: React.FC = () => { const { user } = useAuth(); - return (<> + return ( {user?.id ? ( ) : ( )} - + ); }; +const styles = StyleSheet.create({ + droidSafeArea: { + flex: 1, + backgroundColor: 'transparent', + paddingTop: Platform.OS === 'ios' ? 16 : 0, + }, +}); + export default Routes;