Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

449 B
Raw Blame
import type { ViewProps } from 'react-native';
import { View } from 'react-native';

import { useThemeColor } from '@/modules/ui/providers/use-theme-color';

export type ThemedViewProps = ViewProps & {
  lightColor?: string;
  darkColor?: string;
};

export function ThemedView({ style, ...otherProps }: ThemedViewProps) {
  const theme = useThemeColor();

  return <View style={[{ backgroundColor: theme.background }, style]} {...otherProps} />;
}