Copyimport { useColorModeValue } from 'native-base';
Playgroundfunction UseColorMode() {const {toggleColorMode} = useColorMode();return <Center flex="1" bg={useColorModeValue("warmGray.50", "coolGray.800")}><Text fontSize="lg" display="flex" mb={20}>The active color mode is{" "}<Text bold fontSize="18px">{useColorModeValue("Light", "Dark")}</Text></Text><Button onPress={toggleColorMode}>Toggle</Button></Center>;}const Example = () => {return <NativeBaseProvider><UseColorMode /></NativeBaseProvider>;};