react-native-macos/Libraries/DeprecatedPropTypes
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
..
DeprecatedColorPropType.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
DeprecatedEdgeInsetsPropType.js xplat/js/react-native-github 2019-08-09 10:11:15 -07:00
DeprecatedImagePropType.js xplat/js/react-native-github 2019-08-09 10:11:15 -07:00
DeprecatedImageSourcePropType.js Move ImageSourcePropType.js, ImageStylePropTypes.js, TextPropTypes.js (#21387) 2018-09-28 23:21:38 -07:00
DeprecatedImageStylePropTypes.js xplat/js/react-native-github 2019-08-09 10:11:15 -07:00
DeprecatedLayoutPropTypes.js xplat/js/react-native-github 2019-08-09 10:11:15 -07:00
DeprecatedPointPropType.js xplat/js/react-native-github 2019-08-09 10:11:15 -07:00
DeprecatedShadowPropTypesIOS.js xplat/js/react-native-github 2019-08-09 10:11:15 -07:00
DeprecatedStyleSheetPropType.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
DeprecatedTVViewPropTypes.js TVViewPropTypes, PlatformViewPropTypes, DeprecatedTVViewPropTypes (#21372) 2018-09-27 16:35:42 -07:00
DeprecatedTextInputPropTypes.js Final fixes and seal xplat/js/react-native-github 2019-08-23 08:45:11 -07:00
DeprecatedTextPropTypes.js Deprecate Text proptypes (#26055) 2019-08-14 17:34:07 -07:00
DeprecatedTextStylePropTypes.js Deprecate Text proptypes (#26055) 2019-08-14 17:34:07 -07:00
DeprecatedTransformPropTypes.js xplat/js/react-native-github 2019-08-09 10:11:15 -07:00
DeprecatedViewAccessibility.js Remove deprecated accessibilityStates property. (#26168) 2019-09-02 11:25:31 -07:00
DeprecatedViewPropTypes.js Add accessibilityValueDescription support. (#26169) 2019-09-18 03:16:42 -07:00
DeprecatedViewStylePropTypes.js xplat/js/react-native-github 2019-08-09 10:11:15 -07:00
deprecatedCreateStrictShapeTypeChecker.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00