mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
This PR runs `prettier` on the `examples` folder. Depends on https://github.com/supabase/supabase/pull/43849.
15 lines
463 B
TypeScript
15 lines
463 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} />
|
|
}
|