From 2f27eabe700fc8d4d16f9500a05fe40ded9eac1e Mon Sep 17 00:00:00 2001 From: Filipe Santos <48060475+fc-santos@users.noreply.github.com> Date: Mon, 7 Oct 2024 08:38:21 -0400 Subject: [PATCH] ui: refactor des styles de la bottom nav (#139) Signed-off-by: fc-santos --- app/App.tsx | 5 +---- app/src/navigators/TabStack.tsx | 11 +++++------ app/src/theme.ts | 3 ++- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/app/App.tsx b/app/App.tsx index 62e4004a..192ba88a 100644 --- a/app/App.tsx +++ b/app/App.tsx @@ -21,7 +21,6 @@ import { useTranslation } from 'react-i18next' import { StatusBar } from 'react-native' import { isTablet } from 'react-native-device-info' import Orientation from 'react-native-orientation-locker' -import { SafeAreaProvider } from 'react-native-safe-area-context' import SplashScreen from 'react-native-splash-screen' import Toast from 'react-native-toast-message' import { container } from 'tsyringe' @@ -83,9 +82,7 @@ const App = () => { overlayColor={'black'} overlayOpacity={0.7} > - - - + diff --git a/app/src/navigators/TabStack.tsx b/app/src/navigators/TabStack.tsx index 5411e96b..fcde10e9 100644 --- a/app/src/navigators/TabStack.tsx +++ b/app/src/navigators/TabStack.tsx @@ -38,10 +38,10 @@ const TabStack: React.FC = () => { const tabBarIconContainerStyles = (focused: boolean): ViewStyle => ({ ...TabTheme.tabBarContainerStyle, - borderTopWidth: focused ? 4 : 0, - borderTopColor: ColorPallet.brand.primary, + borderTopWidth: 4, + borderTopColor: focused ? ColorPallet.brand.primary : ColorPallet.brand.primaryBackground, width: '100%', - justifyContent: showLabels ? 'flex-end' : 'center', + justifyContent: 'center', }) const tabs = [ @@ -88,7 +88,7 @@ const TabStack: React.FC = () => { { backgroundColor: ColorPallet.brand.primary, justifyContent: 'center', alignItems: 'center', - borderWidth: 1, }} > { } return ( - +