Initial commit
Generated by create-expo-app 3.3.0.
This commit is contained in:
commit
84c0d8ecd0
38 changed files with 15429 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