Version: 3.0.0

useAccessibleColors

useAccessibleColors is a custom hook used to get the setting for using color with better color and contrast accessibility 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 NativeBaseProvider with extendTheme.

Import#

import { useAccessibleColors } from 'native-base';

Example#

Return value#

Returns an array with values accessibleColors, setAccessibleColors, toggleAccessibleColors.