Fix desktop scafold background color

This commit is contained in:
2024-01-06 16:19:36 +01:00
committed by Clément Le Bihan
parent cfc72b8bc1
commit f77874bec4
2 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ import { BottomTabView } from '@react-navigation/bottom-tabs';
import { Screen, Header, getHeaderTitle, SafeAreaProviderCompat } from '@react-navigation/elements';
import ScaffoldMobileCC from '../components/UI/ScaffoldMobileCC';
import { useBreakpointValue } from 'native-base';
import { useBreakpointValue, useTheme } from 'native-base';
import ScaffoldDesktopCC from '../components/UI/ScaffoldDesktopCC';
type Props = DefaultNavigatorOptions<
@@ -84,7 +84,7 @@ function BottomTabNavigator({
state={state}
navigation={navigation}
descriptors={descriptors}
sceneContainerStyle={sceneContainerStyle}
sceneContainerStyle={[sceneContainerStyle, { backgroundColor: "transparent" }]}
/>
) : (
<ScaffoldDesktopCC state={state} navigation={navigation} descriptors={descriptors}>
@@ -102,7 +102,7 @@ function BottomTabNavigator({
descriptor.navigation as BottomTabNavigationProp<ParamListBase>,
options: descriptor.options,
})}
style={sceneContainerStyle}
style={[sceneContainerStyle, { backgroundColor: "transparent" }]}
>
{descriptor.render()}
</Screen>