@vonovak/react-native-theme-control
Version:
control the platform theme from react native
15 lines (11 loc) • 465 B
text/typescript
import type { ColorValue, StatusBarProps } from 'react-native';
export type NavigationBarProps = Pick<StatusBarProps, 'barStyle'> & {
backgroundColor?: ColorValue | undefined;
dividerColor?: ColorValue | undefined;
};
export type NavbarAppearanceParams = {
backgroundColor?: ColorValue | undefined;
dividerColor?: ColorValue | undefined;
barStyle?: 'dark-content' | 'light-content' | null;
};
export type ThemePreference = 'dark' | 'light' | 'system';