Files
info-tager-mobile/components/themed-view.tsx
Samandar Turgunboyev 166a55b1e9 Initial commit
Generated by create-expo-app 3.5.3.
2026-01-15 18:01:24 +05:00

15 lines
470 B
TypeScript

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