Brandon Presley
f778426aba
Something happened with the deno formatter, I can't remember what! Hahahahahaahahaha
12 lines
294 B
TypeScript
12 lines
294 B
TypeScript
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;
|
|
}
|