Skip to content

Commit

Permalink
Merge Main
Browse files Browse the repository at this point in the history
Signed-off-by: Claude Arseneault <[email protected]>
  • Loading branch information
ClaudeArs committed Oct 7, 2024
2 parents 5fc4b7f + 2f27eab commit fc016bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
5 changes: 1 addition & 4 deletions app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -83,9 +82,7 @@ const App = () => {
overlayColor={'black'}
overlayOpacity={0.7}
>
<SafeAreaProvider>
<RootStack />
</SafeAreaProvider>
<RootStack />
</TourProvider>
<Toast topOffset={15} config={toastConfig} />
</NetworkProvider>
Expand Down
11 changes: 5 additions & 6 deletions app/src/navigators/TabStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,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 = [
Expand Down Expand Up @@ -89,15 +89,14 @@ const TabStack: React.FC = () => {
<View
style={{
position: 'absolute',
top: props.focused ? 2 : 10,
top: 2,
left: '55%',
width: 16,
height: 16,
borderRadius: 8,
backgroundColor: ColorPallet.brand.primary,
justifyContent: 'center',
alignItems: 'center',
borderWidth: 1,
}}
>
<Text
Expand All @@ -117,7 +116,7 @@ const TabStack: React.FC = () => {
}

return (
<SafeAreaView style={{ flex: 1, backgroundColor: ColorPallet.brand.primary }}>
<SafeAreaView edges={['top']} style={{ flex: 1, backgroundColor: ColorPallet.brand.primary }}>
<Tab.Navigator
initialRouteName={TabStacks.HomeStack}
screenOptions={{
Expand Down
3 changes: 2 additions & 1 deletion app/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,14 +431,15 @@ export const ListItems = StyleSheet.create({

export const TabTheme = {
tabBarStyle: {
height: 72,
height: 80,
backgroundColor: ColorPallet.brand.secondaryBackground,
shadowOffset: { width: 0, height: -3 },
shadowRadius: 6,
shadowColor: ColorPallet.grayscale.black,
shadowOpacity: 0.1,
borderTopWidth: 0,
paddingBottom: 0,
elevation: 6,
},
tabBarContainerStyle: {
flex: 1,
Expand Down

0 comments on commit fc016bc

Please sign in to comment.