mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Added Native iOS functionality for prop currentViewStates. On iOS, this property modifies both the view property userInteractionEnabled and also adds corresponding UIAccessibilityTraits to the view. If disabled is passed in, userInteractionEnabled of the view will be set to false. The value that is passed into currentviewStates is converted to a UIAccessibilityTrait Enum and masked in with existing UIAccessibilityTraits on that native view. The native implementation for accessibilityRole is also changed to also mask new UIAccessibilityTraits with existing ones. Reviewed By: PeteTheHeat Differential Revision: D8842691 fbshipit-source-id: 919267300c70efed93a7a92377a0178bd8885eb5