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
This commit is contained in:
Ziqi Chen 2018-07-24 18:24:32 -07:00 committed by Facebook Github Bot
parent 9f01e4ccff
commit b5b704dc19
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,8 @@ ReactNativeViewAttributes.UIView = {
accessibilityLabel: true, accessibilityLabel: true,
accessibilityComponentType: true, accessibilityComponentType: true,
accessibilityLiveRegion: true, accessibilityLiveRegion: true,
accessibilityRole: true,
accessibilityStates: true,
accessibilityTraits: true, accessibilityTraits: true,
importantForAccessibility: true, importantForAccessibility: true,
nativeID: true, nativeID: true,