about summary refs log tree commit diff
path: root/src/Splash.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-02-16 14:54:42 -0600
committerGitHub <noreply@github.com>2024-02-16 12:54:42 -0800
commitb665f065b7b63cb34bf11cb66e255131332fc7f2 (patch)
tree557b7e946b94236bc55631e3e5e53ea606e1d930 /src/Splash.tsx
parent4e66c9b806f622e51e4c07f16fd9db320845ea3d (diff)
downloadvoidsky-b665f065b7b63cb34bf11cb66e255131332fc7f2.tar.zst
Commit to theme mode of system (#2896)
Diffstat (limited to 'src/Splash.tsx')
-rw-r--r--src/Splash.tsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Splash.tsx b/src/Splash.tsx
index d84050057..b2381f923 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<Props>) {
     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 {