Khởi tạo ban đầu

This commit is contained in:
Tran Anh Tuan
2025-11-28 16:59:57 +07:00
parent 2911be97b2
commit 4ba46a7df2
131 changed files with 28066 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import { View, type ViewProps } from "react-native";
import { useThemeColor } from "@/hooks/use-theme-color";
export type ThemedViewProps = ViewProps & {
lightColor?: string;
darkColor?: string;
className?: string;
};
export function ThemedView({
style,
className = "",
lightColor,
darkColor,
...otherProps
}: ThemedViewProps) {
const backgroundColor = useThemeColor(
{ light: lightColor, dark: darkColor },
"background"
);
return (
<View
className={className}
style={[{ backgroundColor }, style]}
{...otherProps}
/>
);
}