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
accessibilityActions
event names viaDynamicAutomationProperties
- Storing a new
AccessibilityActionsEventHandler
property similar toAccessibilityInvokeEventHandler
but 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment