Spaces:
Runtime error
Runtime error
Download app/hooks/useColorScheme.ts from ichko/text-brush: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/spaces/ichko/text-brush/resolve/main/app/hooks/useColorScheme.ts
- Command line
-
hf download hf://spaces/ichko/text-brush/app/hooks/useColorScheme.ts
-
curl -L -o useColorScheme.ts https://huggingface.co/spaces/ichko/text-brush/resolve/main/app/hooks/useColorScheme.ts
415 Bytes
| import { ColorSchemeName, useColorScheme as _useColorScheme } from 'react-native'; | |
| // The useColorScheme value is always either light or dark, but the built-in | |
| // type suggests that it can be null. This will not happen in practice, so this | |
| // makes it a bit easier to work with. | |
| export default function useColorScheme(): NonNullable<ColorSchemeName> { | |
| return _useColorScheme() as NonNullable<ColorSchemeName>; | |
| } | |