-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Right now, the only action a UIA client can make to a RNW app is Invoke and Toggle (which calls Invoke). The remaining actions we expose to UIA are no-ops:
- Select
- AddToSelection
- RemoveFromSelection
- Expand
- Collapse
- Toggle (re-do)
RN60 adds an accessibilityActions property, which lets you register an event handler to catch these invocations from UIA poking the native side. See docs here: https://facebook.github.io/react-native/docs/accessibility#accessibility-actions
Since it just uses string identifiers, this would be as simple as:
- Storing the registered
accessibilityActionsevent names viaDynamicAutomationProperties - Storing a new
AccessibilityActionsEventHandlerproperty similar toAccessibilityInvokeEventHandlerbut with a name parameter - Having each UIA action list above check the registered names and if specific ones exist ("toggle", "select", etc) then fire the
AccessibilityActionsEventHandler