boilerplate init
This commit is contained in:
parent
7b9302c982
commit
fb4ba63a06
111 changed files with 26753 additions and 1534 deletions
14
apps/mobile/components/themed-view.tsx
Normal file
14
apps/mobile/components/themed-view.tsx
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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} />;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue