useTheme

The purpose of the useTheme hook is to manage and customise the StockUI Theme

Example Usage:
const { theme, themeAssets, setThemeType, setThemes, themeType, themes } = useTheme();

Hook Argument

themeType

Type

Default

UseThemeArg

Empty Object

Hook Return Value

theme

Type

Default

LLTheme

Default colorScheme

themeAssets

Type

Default

LLThemeAssets

Default assets

setThemeType

Type

Function of type: (newThemeType: LLThemeType) => void

setThemes

Type

Function of type: (_themes: LLThemes) => void

themeType

Type

Default

ColorSchemeName | LLThemeType

ColorSchemeName

themes

Type

Default

LLThemes

Default StockUI Theme


What’s Next