This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
interaktive-systeme/hooks/useThemeColor.ts

11 lines
No EOL
322 B
TypeScript

import { useColorScheme } from "react-native";
import colors from "../constants/colors";
export function useThemeColor(colorName: keyof typeof colors.light & keyof typeof colors.dark): string {
const theme = useColorScheme() ?? "light";
return colors[theme][colorName];
}
export function useUpdateData() {
}