This commit is contained in:
oneao committed 2026-04-10 21:38:36 +08:00
1 parent f384a2a6e9
commit cd191fdc60
25 files changed
+4267 -32

No files matched your search

@@ -1,7 +1,7 @@
import { View, type ViewProps } from 'react-native';
import { View, type ViewProps } from "react-native";
import { ThemeColor } from '@/constants/theme';
import { useTheme } from '@/hooks/use-theme';
import { ThemeColor } from "@/constants/theme";
import { useTheme } from "@/hooks/use-theme";
export type ThemedViewProps = ViewProps & {
lightColor?: string;
@@ -12,5 +12,5 @@ export type ThemedViewProps = ViewProps & {
export function ThemedView({ style, lightColor, darkColor, type, ...otherProps }: ThemedViewProps) {
const theme = useTheme();
return <View style={[{ backgroundColor: theme[type ?? 'background'] }, style]} {...otherProps} />;
return <View style={[{ backgroundColor: theme[type ?? "background"] }, style]} {...otherProps} />;
}