ThemeProviderProps
type ThemeProviderProps = { children: ReactNode; colors?: ThemeColorValues; fonts?: ThemeFontValues; fontStyleSheet?: string; globalStyles?: GlobalStyleObject; locale?: AppLocale;};Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
children |
ReactNode |
Children to be rendered within this theme. |
colors? |
ThemeColorValues |
Custom colors for theme. |
fonts? |
ThemeFontValues |
Font families used for custom theme fonts. Font names must match the names of imported fonts in Font Style Sheet |
fontStyleSheet? |
string |
Style sheet containing font faces to be used for custom Theme Fonts. See example usage in theme-casper.ui.ts |
globalStyles? |
GlobalStyleObject |
- |
locale? |
AppLocale |
Locale used by every localized component in this subtree. Defaults to en-US. |