Skip to main content

useTheme

useTheme is a hook that reads the theme and changes the color mode, such as styling a custom view or adding a dark-mode switch.

Import

import { useTheme } from '@vortexlabs/vortex-native';

Other links

useTheme return value
PropTypeDefaultAttributes
theme
object
No default value
colorMode
union
No default value
colorModePreference
union
No default value
setColorMode
callback
No default value
invertColorMode
callback
No default value