react-native-country-picker-modal-xkelxmc
Version:
react-native country picker
58 lines (57 loc) • 1.8 kB
TypeScript
/// <reference types="react" />
export declare const DEFAULT_THEME: {
primaryColor: string;
primaryColorVariant: string;
backgroundColor: string;
onBackgroundTextColor: string;
fontSize: number;
fontFamily: string | undefined;
filterPlaceholderTextColor: string;
activeOpacity: number;
itemHeight: number;
flagSize: number;
flagSizeButton: number;
};
export declare const DARK_THEME: {
primaryColor: string;
primaryColorVariant: string;
backgroundColor: string;
onBackgroundTextColor: string;
fontSize: number;
fontFamily: string | undefined;
filterPlaceholderTextColor: string;
activeOpacity: number;
itemHeight: number;
flagSize: number;
flagSizeButton: number;
};
export type Theme = Partial<typeof DEFAULT_THEME>;
declare const ThemeProvider: import("react").ComponentType<{
children: import("react").ReactNode;
theme?: Partial<{
primaryColor: string;
primaryColorVariant: string;
backgroundColor: string;
onBackgroundTextColor: string;
fontSize: number;
fontFamily: string | undefined;
filterPlaceholderTextColor: string;
activeOpacity: number;
itemHeight: number;
flagSize: number;
flagSizeButton: number;
}> | undefined;
}>, useTheme: <T = Partial<{
primaryColor: string;
primaryColorVariant: string;
backgroundColor: string;
onBackgroundTextColor: string;
fontSize: number;
fontFamily: string | undefined;
filterPlaceholderTextColor: string;
activeOpacity: number;
itemHeight: number;
flagSize: number;
flagSizeButton: number;
}>>(overrides?: import("@callstack/react-theme-provider").$DeepPartial<T> | undefined) => T;
export { ThemeProvider, useTheme };