Permalink
Browse files

added accessibilityStates and accessibilityRole to ReactNativeViewAtt…

…ributes

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
  • Loading branch information...
ziqichen6 authored and facebook-github-bot committed Jul 25, 2018
1 parent 9f01e4c commit b5b704dc19b80a1909d66adcd617220a98c7aace
Showing with 2 additions and 0 deletions.
  1. +2 −0 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,

0 comments on commit b5b704d

Please sign in to comment.