diff options
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r-- | src/Navigation.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 186432c8c..d5ffb1539 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -6,6 +6,8 @@ import { createNavigationContainerRef, CommonActions, StackActions, + DefaultTheme, + DarkTheme, } from '@react-navigation/native' import {createNativeStackNavigator} from '@react-navigation/native-stack' import {createBottomTabNavigator} from '@react-navigation/bottom-tabs' @@ -256,8 +258,9 @@ const LINKING = { } function RoutesContainer({children}: React.PropsWithChildren<{}>) { + const theme = useColorSchemeStyle(DefaultTheme, DarkTheme) return ( - <NavigationContainer ref={navigationRef} linking={LINKING}> + <NavigationContainer ref={navigationRef} linking={LINKING} theme={theme}> {children} </NavigationContainer> ) @@ -334,7 +337,7 @@ const styles = StyleSheet.create({ backgroundColor: colors.black, }, bgLight: { - backgroundColor: colors.gray1, + backgroundColor: colors.white, }, }) |