Commit to theme mode of system (#2896)
parent
4e66c9b806
commit
b665f065b7
|
@ -21,7 +21,6 @@ import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
||||||
import Svg, {Path, SvgProps} from 'react-native-svg'
|
import Svg, {Path, SvgProps} from 'react-native-svg'
|
||||||
|
|
||||||
import {isAndroid} from '#/platform/detection'
|
import {isAndroid} from '#/platform/detection'
|
||||||
import {useThemePrefs} from 'state/shell'
|
|
||||||
import {Logotype} from '#/view/icons/Logotype'
|
import {Logotype} from '#/view/icons/Logotype'
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
@ -75,10 +74,8 @@ export function Splash(props: React.PropsWithChildren<Props>) {
|
||||||
isLayoutReady &&
|
isLayoutReady &&
|
||||||
reduceMotion !== undefined
|
reduceMotion !== undefined
|
||||||
|
|
||||||
const {colorMode} = useThemePrefs()
|
|
||||||
const colorScheme = useColorScheme()
|
const colorScheme = useColorScheme()
|
||||||
const themeName = colorMode === 'system' ? colorScheme : colorMode
|
const isDarkMode = colorScheme === 'dark'
|
||||||
const isDarkMode = themeName === 'dark'
|
|
||||||
|
|
||||||
const logoAnimation = useAnimatedStyle(() => {
|
const logoAnimation = useAnimatedStyle(() => {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue