From b665f065b7b63cb34bf11cb66e255131332fc7f2 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 16 Feb 2024 14:54:42 -0600 Subject: [PATCH] Commit to theme mode of system (#2896) --- src/Splash.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Splash.tsx b/src/Splash.tsx index d8405005..b2381f92 100644 --- a/src/Splash.tsx +++ b/src/Splash.tsx @@ -21,7 +21,6 @@ import {useSafeAreaInsets} from 'react-native-safe-area-context' import Svg, {Path, SvgProps} from 'react-native-svg' import {isAndroid} from '#/platform/detection' -import {useThemePrefs} from 'state/shell' import {Logotype} from '#/view/icons/Logotype' // @ts-ignore @@ -75,10 +74,8 @@ export function Splash(props: React.PropsWithChildren) { isLayoutReady && reduceMotion !== undefined - const {colorMode} = useThemePrefs() const colorScheme = useColorScheme() - const themeName = colorMode === 'system' ? colorScheme : colorMode - const isDarkMode = themeName === 'dark' + const isDarkMode = colorScheme === 'dark' const logoAnimation = useAnimatedStyle(() => { return {