Initial commit
Generated by create-expo-app 3.0.0.
This commit is contained in:
commit
8e0a267423
37 changed files with 32127 additions and 0 deletions
14
components/ThemedView.tsx
Normal file
14
components/ThemedView.tsx
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { View, type ViewProps } from 'react-native';
|
||||
|
||||
import { useThemeColor } from '@/hooks/useThemeColor';
|
||||
|
||||
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} />;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue