react-native-accessibility-settings
v0.1.2
Published
Accessibility settings
Downloads
34
Readme
react-native-accessibility-settings
Accessibility settings (only iOS supported for now)
Installation
npm install react-native-accessibility-settings
Usage
import AccessibilitySettings, {
useAccessibilitySettings,
useAccessibilitySetting,
} from 'react-native-accessibility-settings';
// Does NOT update when the users preferences change
const accessibilitySettings = AccessibilitySettings.get();
// DOES update when the users preferences change
const accessibilitySettings = useAccessibilitySettings();
const buttonShapes = useAccessibilitySetting('buttonShapes');
Settings supported:-
shakeToUndo
closedCaptioning
boldText
darkerSystemColors
grayscale
guidedAccess
invertColors
monoAudio
reduceMotion
reduceTransparency
speakScreen
speakSelection
onOffSwitchLabels
videoAutoplay
buttonShapes
prefersCrossFadeTransitions
shouldDifferentiateWithoutColor
See Apple's documentation for more information
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library