react-native-macos/Libraries/DeprecatedPropTypes
Marc Mulcahy 099be9b356 New Accessibility states API. (#24608)
Summary:
As currently defined, accessibilityStates is an array of strings, which represents the state of an object. The array of strings notion doesn't well encapsulate how various states are related, nor enforce any level of correctness.

This PR converts accessibilityStates to an object with a specific definition. So, rather than:

<View
...
accessibilityStates={['unchecked']}>

We have:

<View
accessibilityStates={{'checked': false}}>

And specifically define the checked state to either take a boolean or the "mixed" string (to represent mixed checkboxes).

We feel this API is easier to understand an implement, and provides better semantic definition of the states themselves, and how states are related to one another.

## Changelog

[general] [change] - Convert accessibilityStates to an object instead of an array of strings.
Pull Request resolved: https://github.com/facebook/react-native/pull/24608

Differential Revision: D15467980

Pulled By: cpojer

fbshipit-source-id: f0414c0ef6add3f10f7f551d323d82d978754278
2019-05-23 05:37:33 -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 Split EdgeInsets in DeprecatedPropTypes and flow types (#21351) 2018-09-27 11:02:13 -07:00
DeprecatedImagePropType.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
DeprecatedImageSourcePropType.js Move ImageSourcePropType.js, ImageStylePropTypes.js, TextPropTypes.js (#21387) 2018-09-28 23:21:38 -07:00
DeprecatedImageStylePropTypes.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
DeprecatedLayoutPropTypes.js Move and Rename custom propType definitions in LayoutPropTypes (#21370) 2018-10-01 12:19:15 -07:00
DeprecatedPointPropType.js Split PointPropType (#21355) 2018-09-26 22:35:11 -07:00
DeprecatedShadowPropTypesIOS.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -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
DeprecatedTextPropTypes.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
DeprecatedTransformPropTypes.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
DeprecatedViewAccessibility.js Additional Accessibility Roles and States (#24095) 2019-04-25 06:13:07 -07:00
DeprecatedViewPropTypes.js New Accessibility states API. (#24608) 2019-05-23 05:37:33 -07:00
DeprecatedViewStylePropTypes.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -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