Skip to content
Docs
Hooks
useColorModeValue

useTheme

Hook used to determine the value to apply for the current color mode.

Import

import { useColorModeValue } from 'react-native-ficus-ui';

Usage

const value = useColorModeValue('appliedValueWhenLight', 'appliedValueWhenDark');
 
const textColor = useColorModeValue('dark', 'white');