Skip to content

Commit

Permalink
Commit to theme mode of system (bluesky-social#2896)
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey authored Feb 16, 2024
1 parent 4e66c9b commit b665f06
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Splash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit b665f06

Please sign in to comment.