Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 510 Bytes

useAccessibilityInfo.md

File metadata and controls

15 lines (11 loc) · 510 Bytes

useAccessibilityInfo

React Native API 🎣 that adds an event listener for the AccessibilityInfo change event, and adds one for the announcementFinished on iOS. Also, this will return the initial state from AccessibilityInfo.fetch() as well as the other methods for use with the API.

Usage

import {useAccessibilityInfo} from 'react-native-use'

const [
  {readerEnabled, announcement, success},
  setAccessibilityFocus,
  announceForAccessibility
] = useAccessibilityInfo();