forked from Rockachopa/Timmy-time-dashboard
16 lines
461 B
TypeScript
16 lines
461 B
TypeScript
|
|
import { View, type ViewProps } from "react-native";
|
||
|
|
|
||
|
|
import { cn } from "@/lib/utils";
|
||
|
|
|
||
|
|
export interface ThemedViewProps extends ViewProps {
|
||
|
|
className?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* A View component with automatic theme-aware background.
|
||
|
|
* Uses NativeWind for styling - pass className for additional styles.
|
||
|
|
*/
|
||
|
|
export function ThemedView({ className, ...otherProps }: ThemedViewProps) {
|
||
|
|
return <View className={cn("bg-background", className)} {...otherProps} />;
|
||
|
|
}
|