You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
281 B

import {useColorScheme} from 'react-native'
import {useTheme} from './use-theme'
export default function useDark() {
const dark = useColorScheme() === 'dark'
const {theme} = useTheme()
if (theme === 'dark') return true
if (theme === 'light') return false
return dark