this repo has no description
1import { View, type ViewProps } from 'react-native';
2
3import { useThemeColor } from '@/hooks/useThemeColor';
4
5export type ThemedViewProps = ViewProps & {
6 lightColor?: string;
7 darkColor?: string;
8};
9
10export function ThemedView({ style, lightColor, darkColor, ...otherProps }: ThemedViewProps) {
11 const backgroundColor = useThemeColor({ light: lightColor, dark: darkColor }, 'background');
12
13 return <View style={[{ backgroundColor }, style]} {...otherProps} />;
14}