Skip to content

Implement accessibilityActions #2765

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 via DynamicAutomationProperties
  • Storing a new AccessibilityActionsEventHandler property similar to AccessibilityInvokeEventHandler 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

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions