Files
RSSuper/src/hooks/use-theme.ts
Michael Freno 0a477300f4 Initial commit
Generated by create-expo-app 3.5.3.
2026-03-28 10:37:16 -04:00

15 lines
354 B
TypeScript

/**
* Learn more about light and dark modes:
* https://docs.expo.dev/guides/color-schemes/
*/
import { Colors } from '@/constants/theme';
import { useColorScheme } from '@/hooks/use-color-scheme';
export function useTheme() {
const scheme = useColorScheme();
const theme = scheme === 'unspecified' ? 'light' : scheme;
return Colors[theme];
}