useAccessibleColors | NativeBase | Universal Components for React and React Native

Search
K
Hire us
Please opt in to our enterprise plan (coming soon) for priority support with NativeBase. If you are starting a new project, we recommend using gluestack-ui. For your existing projects, you can utilize @gluestack-ui/themed-native-base (beta).
useAccessibleColors
useAccessibleColors is a custom hook used to get the setting for using color with better in the app. By default, accessible colors are turned off to get better color matching the theme of the app. You can use this hook if you always want to use accessible text colors. You can also pass it in the config for with .
Import
Copy
import { useAccessibleColors } from 'native-base';
Example
Playground
Return value
Returns an array with values accessibleColors, setAccessibleColors, toggleAccessibleColors.
Nativebase logo
MadeWithNativeBase