UNPKG

@hoddy-ui/core

Version:

Core rich react native components written in typescript

38 lines (33 loc) 630 B
type TypographyVariant = | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "body1" | "body2" | "caption"; type configTypes = { GOOGLE_MAP_API_KEY?: string; TYPOGRAPHY?: { fontFamily?: string; fontWeights?: { [K in 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900]?: string; }; fontSizes?: { [K in TypographyVariant]?: number; }; }; EDGE_TO_EDGE?: boolean; }; let config: configTypes = { GOOGLE_MAP_API_KEY: "", EDGE_TO_EDGE: false, }; export function setConfig(key: configTypes): void { config = key; } export function getConfig(): configTypes { return config; }