From e81f2c1f755173f261e01abbe20f4ba40de84aa1 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 6 Jan 2024 16:44:04 +0100 Subject: [PATCH] Handle safe areas with tabs --- front/components/UI/ScaffoldDesktopCC.tsx | 9 +++---- front/utils/navigator.tsx | 29 ++++++++++++++++++++--- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/front/components/UI/ScaffoldDesktopCC.tsx b/front/components/UI/ScaffoldDesktopCC.tsx index b366258..8b5732d 100644 --- a/front/components/UI/ScaffoldDesktopCC.tsx +++ b/front/components/UI/ScaffoldDesktopCC.tsx @@ -1,5 +1,5 @@ /* eslint-disable no-mixed-spaces-and-tabs */ -import { View, Image, Pressable, useColorScheme } from 'react-native'; +import { View, Image, Pressable, useColorScheme, ViewStyle } from 'react-native'; import { Divider, Text, ScrollView, Row, useMediaQuery, useTheme } from 'native-base'; import { useAssets } from 'expo-asset'; import { useQuery } from '../../Queries'; @@ -123,7 +123,8 @@ const ScaffoldDesktopCC = ({ descriptors, navigation, children, -}: Omit & { children: ReactElement }) => { + style, +}: Omit & { children: ReactElement; style?: ViewStyle }) => { const user = useQuery(API.getUserInfo); const [isSmallScreen] = useMediaQuery({ maxWidth: 1100 }); const { colors } = useTheme(); @@ -135,7 +136,7 @@ const ScaffoldDesktopCC = ({ ); return ( - +