Add support for accessibilityValue
#12510
Labels
Area: Accessibility
enhancement
Workstream: Accessibility
Ensure RNW Fabric apps are properly accessible.
Milestone
Documentation
accessibilityValue documentation: https://reactnative.dev/docs/accessibility#accessibilityvalue
Behavior Explanation
From the documentation:
"Represents the current value of a component. It can be a textual description of a component's value, or for range-based components, such as sliders and progress bars, it contains range information (minimum, current, and maximum).
accessibilityValue is an object. It contains the following fields:
"
On the native side our platform should take the accessibilityValue data and store the data in UIA through the IValueProvider or IRangeValueProvider. The data should then be able to be read aloud through a screen reader.
Implementation Plan
In our native implementation of accessibilityValue we should:
Note this prop will be somewhat control type dependent because different controls will store different kinds of data and some may not support value/range data at all.
Past Implementation
#5080
#10318
#5619
Notes
To Be Clarified
It is unclear in documentation what the behavior should be if a control should not support value/range data but an accessibilityValue is supplied. Should the value be ignored, or should the native code add a IValueProvider for the control?
The text was updated successfully, but these errors were encountered: