useTheme
Hook used to get the current color mode ('light' or 'dark') from context.
Also 2 methods setColorMode and toggleColorMode to update the current color mode applied from theme.
Import
import { useColorMode } from 'react-native-ficus-ui';Usage
const { colorMode, setColorMode, toggleColorMode } = useColorMode();