UNPKG

react-native-a11y

Version:

Improvements of a11y for ReactNative, this library improve work with reader and keyboard focus and reader in general.

18 lines (13 loc) 453 B
import type { AccessibilityChangeEventName } from 'react-native'; const A11Y_DEPRECATED = 'change'; class A11yConfig { private a11yServiceChangeEvent: AccessibilityChangeEventName = A11Y_DEPRECATED; init({ a11yEventName }: { a11yEventName: AccessibilityChangeEventName }) { this.a11yServiceChangeEvent = a11yEventName; } get a11yEventName() { return this.a11yServiceChangeEvent; } } export const a11yConfig = new A11yConfig();