0.1.2 • Published 2 years ago
react-native-accessibility-settings v0.1.2
react-native-accessibility-settings
Accessibility settings (only iOS supported for now)
Installation
npm install react-native-accessibility-settingsUsage
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:-
shakeToUndoclosedCaptioningboldTextdarkerSystemColorsgrayscaleguidedAccessinvertColorsmonoAudioreduceMotionreduceTransparencyspeakScreenspeakSelectiononOffSwitchLabelsvideoAutoplaybuttonShapesprefersCrossFadeTransitionsshouldDifferentiateWithoutColor
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