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:
parent
9f01e4ccff
commit
b5b704dc19
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue