Resolve "datenbank schmiert ab wenn schnell 20~ einträge eingetragen werden"

This commit is contained in:
Thomas Schleicher 2023-12-13 10:35:53 +00:00 committed by jastornig
parent 32de9bf1f1
commit 417204b4c1
13 changed files with 124 additions and 89 deletions

11
hooks/useThemeColor.ts Normal file
View file

@ -0,0 +1,11 @@
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() {
}