Skip to content

Commit b5b704d

Browse files
Ziqi Chenfacebook-github-bot
Ziqi Chen
authored andcommitted
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
1 parent 9f01e4c commit b5b704d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Libraries/Components/View/ReactNativeViewAttributes.js

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ ReactNativeViewAttributes.UIView = {
2121
accessibilityLabel: true,
2222
accessibilityComponentType: true,
2323
accessibilityLiveRegion: true,
24+
accessibilityRole: true,
25+
accessibilityStates: true,
2426
accessibilityTraits: true,
2527
importantForAccessibility: true,
2628
nativeID: true,

0 commit comments

Comments
 (0)