react-native-macos/React/Views
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
..
SafeAreaView Fixes SafeAreaView when set emulateUnlessSupported on safeArea supported devices (#24615) 2019-04-29 10:02:58 -07:00
ScrollView Fix typos (#25770) 2019-07-23 03:23:11 -07:00
RCTActivityIndicatorView.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTActivityIndicatorView.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTActivityIndicatorViewManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTActivityIndicatorViewManager.m Do not override ActivityIndicator color when setting its size (#25849) 2019-07-30 04:31:24 -07:00
RCTAnimationType.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTAutoInsetsProtocol.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTBorderDrawing.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTBorderDrawing.m Fix typos (#25770) 2019-07-23 03:23:11 -07:00
RCTBorderStyle.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTComponent.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTComponentData.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTComponentData.m BREAKING - RCTEvent improvements, remove deprecated [sendInputEventWithName:body:] (#15894) 2019-03-27 11:20:22 -07:00
RCTConvert+CoreLocation.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTConvert+CoreLocation.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTConvert+Transform.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTConvert+Transform.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTDatePicker.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTDatePicker.m Fixed minuteInterval invalid in time mode (#23923) 2019-03-15 11:34:20 -07:00
RCTDatePickerManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTDatePickerManager.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTFont.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTFont.mm Add ultrabold pairs for font weight (#24948) 2019-05-31 03:08:36 -07:00
RCTLayout.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTLayout.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTMaskedView.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTMaskedView.m Fix xcode warnings (#23565) 2019-02-20 18:46:23 -08:00
RCTMaskedViewManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTMaskedViewManager.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTModalHostView.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTModalHostView.m Removed autoresizing mask for modal host container view (#25150) 2019-06-05 05:02:52 -07:00
RCTModalHostViewController.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTModalHostViewController.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTModalHostViewManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTModalHostViewManager.m Fix onDismiss in Modal 2019-07-29 11:19:30 -07:00
RCTPicker.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTPicker.m Fix 50 xcode warnings (#23553) 2019-02-20 10:17:26 -08:00
RCTPickerManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTPickerManager.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTPointerEvents.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTProgressViewManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTProgressViewManager.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTRefreshControl.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTRefreshControl.m Fix setting the contentOffset value when refresh ends (#24191) 2019-04-01 12:54:36 -07:00
RCTRefreshControlManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTRefreshControlManager.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTRootShadowView.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTRootShadowView.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTSegmentedControl.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTSegmentedControl.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTSegmentedControlManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTSegmentedControlManager.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTShadowView+Internal.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTShadowView+Internal.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTShadowView+Layout.h Fix typos (#25770) 2019-07-23 03:23:11 -07:00
RCTShadowView+Layout.m Fix typos (#25770) 2019-07-23 03:23:11 -07:00
RCTShadowView.h Back out "[RN][iOS] Remove definition of viewIsDescendantOf method in RN iOS code" 2019-07-10 20:56:39 -07:00
RCTShadowView.m Back out "[RN][iOS] Remove definition of viewIsDescendantOf method in RN iOS code" 2019-07-10 20:56:39 -07:00
RCTSlider.h Switch Slider onSlidingComplete event to a non-bubbling event on iOS to match Android 2019-05-16 10:51:07 -07:00
RCTSlider.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTSliderManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTSliderManager.m Switch Slider onSlidingComplete event to a non-bubbling event on iOS to match Android 2019-05-16 10:51:07 -07:00
RCTSwitch.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTSwitch.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTSwitchManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTSwitchManager.m Unify native props 2019-01-07 15:39:21 -08:00
RCTTVView.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTTVView.m Removed method call to RCTRootView::setReactPreferredFocusedView as ... (#21596) 2019-01-22 07:33:44 -08:00
RCTTextDecorationLineType.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTView.h Move accessibilityActions property to UIView+React (#25015) 2019-05-24 15:33:43 -07:00
RCTView.m Add accessibilityValueDescription support. (#26169) 2019-09-18 03:16:42 -07:00
RCTViewManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTViewManager.m Add accessibilityValueDescription support. (#26169) 2019-09-18 03:16:42 -07:00
RCTWrapperViewController.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTWrapperViewController.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
UIView+Private.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
UIView+React.h Add accessibilityValueDescription support. (#26169) 2019-09-18 03:16:42 -07:00
UIView+React.m Add accessibilityValueDescription support. (#26169) 2019-09-18 03:16:42 -07:00