react-native-macos/React
Marc Mulcahy 7df3eea1a7 Add accessibilityValueDescription support. (#26169)
Summary:
React Native components need a mechanism to specify their value to assistive technologies. This PR adds the notion of accessibilityValueDescription-- a property which either contains 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).

On iOS, the range-based info if present is converted into a percentage and added to the accessibilityValue property of the UIView. If text is present as part of the accessibilityValueDescription, it is used instead of the range-based information.

On Android, any range-based information in accessibilityValueDescription is exposed in the AccessibilityNodeInfo's RangeInfo. Text which is part of accessibilityValueDescription is appended to the content description.

## Changelog

[GENERAL] [Change] - add accessibilityValuedescription property.
Pull Request resolved: https://github.com/facebook/react-native/pull/26169

Test Plan: Added two new accessibility examples to RNTester, one which uses text and another which uses range-based info in accessibilityValueDescription. Verified that they both behave correctly on both Android and iOS.

Differential Revision: D17444730

Pulled By: cpojer

fbshipit-source-id: 1fb3252a90f88f7cafe1cbf7db08c03f14cc2321
2019-09-18 03:16:42 -07:00
..
Base Fabric: Explicit Scheduler creation and destruction management in RCTSurfacePresenter 2019-09-10 21:33:42 -07:00
CoreModules Combine rn_debug_flags and rn_feature_flags 2019-09-12 13:09:29 -07:00
CxxBridge Remove guard around isHotLoadingAvailable 2019-09-03 15:54:11 -07:00
CxxModule Remove ; from method implementation definition 2019-08-21 15:49:16 -07:00
CxxUtils Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
DevSupport Remove live reloading option from RN iOS 2019-09-06 03:48:49 -07:00
Fabric Make surface presenter manage start of surface (#24372) 2019-09-11 21:27:51 -07:00
Inspector Make sure requests are sent in sequential order on iOS. 2019-09-04 05:37:29 -07:00
Modules Export the DevSettings module, add `addMenuItem` method (#25848) 2019-09-17 06:38:10 -07:00
Profiler Fix incorrect unhooking for UI manager views in RCTProfileUnhookModules (#25042) 2019-05-31 12:47:29 -07:00
UIUtils Calculate Correct Window Dimensions for iOS (#19932) 2019-04-10 14:25:14 -07:00
Views Add accessibilityValueDescription support. (#26169) 2019-09-18 03:16:42 -07:00
React-RCTFabric.podspec Remove 's.static_framework = true' requirement for podspec (#25816) 2019-07-25 11:46:43 -07:00
third-party.xcconfig Upgrade folly to v2018.10.22.00 for iOS (#21976) 2018-10-29 12:13:11 -07:00