useWithStyle#
useWithStyle is a hook function.
hook Props#
Takes 4 props wrapped with useWithStyle.
currentTheme | object#
return the current theme if you want to do the styling directly in the component and not via styles
themeTypes | array#
Returns the key of the all themes.
themeType | string#
Returns the key of the current theme.
toggleTheme | function#
Function that allows you to change the theme. It takes the key of the new theme as a parameter.