From b5b704dc19b80a1909d66adcd617220a98c7aace Mon Sep 17 00:00:00 2001 From: Ziqi Chen Date: Tue, 24 Jul 2018 18:24:32 -0700 Subject: [PATCH] added accessibilityStates and accessibilityRole to ReactNativeViewAttributes Summary: Previously, I added accessibilityRole and accessibilityStates as View Properties. In this diff, I added accessibilityRole and accessibilityStates to ReactNativeViewAttributes.UIView, which is used for viewconfig in some components. The NativeMethodsMixing uses the set view config when invoking `setNativeProps`, and it's used to make those components look like an actual native component class. Reviewed By: PeteTheHeat Differential Revision: D8976524 fbshipit-source-id: 16a5ba7d91ee9cfb6488c2d94f7f23b9093e5b81 --- Libraries/Components/View/ReactNativeViewAttributes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/Components/View/ReactNativeViewAttributes.js b/Libraries/Components/View/ReactNativeViewAttributes.js index bc4ca6b3d229fc..4bbe4081dad9ed 100644 --- a/Libraries/Components/View/ReactNativeViewAttributes.js +++ b/Libraries/Components/View/ReactNativeViewAttributes.js @@ -21,6 +21,8 @@ ReactNativeViewAttributes.UIView = { accessibilityLabel: true, accessibilityComponentType: true, accessibilityLiveRegion: true, + accessibilityRole: true, + accessibilityStates: true, accessibilityTraits: true, importantForAccessibility: true, nativeID: true,