Files
react-native-paper/src/types.js
2018-05-26 02:11:11 +02:00

29 lines
506 B
JavaScript

/* @flow */
export type Theme = {
dark: boolean,
roundness: number,
colors: {
primary: string,
background: string,
surface: string,
accent: string,
error: string,
text: string,
disabled: string,
placeholder: string,
},
fonts: {
regular: string,
medium: string,
light: string,
thin: string,
},
};
export type ThemeShape = $Shape<{
...Theme,
colors: $Shape<$PropertyType<Theme, 'colors'>>,
fonts: $Shape<$PropertyType<Theme, 'fonts'>>,
}>;