Content-Length: 181790 | pFad | https://docs.nativebase.io/use-color-mode

useColorMode | NativeBase

useColorMode | NativeBase | Universal Components for React and React Native

Search
K
Hire us
Data Display
Typography
Disclosure
Media and Icons
Others
If you are starting a new project, please try gluestack-ui for better performance and new design.
useColorMode
useColorMode is a custom hook that can set the color mode or retrieve it.
Import
Copy
import { useColorMode } from "native-base";
Example
Playground
Return
Name
Type
Description
Default
colorMode
light, dark
The active color mode.
light
setColorMode
function
Use to set color mode.
-
toggleColorMode
function
Use to toggle between light and dark mode.
-
Nativebase logo
MadeWithNativeBase
Gluestack logo
gluestack-ui








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://docs.nativebase.io/use-color-mode

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy