react-native-accessibility-settings
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

react-native-accessibility-settings

Accessibility settings (only iOS supported for now)

Part of the TechniCalc Project

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

Package Sidebar

Install

npm i react-native-accessibility-settings

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

42.5 kB

Total Files

21

Last publish

Collaborators

  • jacobp100