Skip to content

Commit

Permalink
added accessibilityStates and accessibilityRole to ReactNativeViewAtt…
Browse files Browse the repository at this point in the history
…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
Ziqi Chen authored and facebook-github-bot committed Jul 25, 2018
1 parent 9f01e4c commit b5b704d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/Components/View/ReactNativeViewAttributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ ReactNativeViewAttributes.UIView = {
accessibilityLabel: true,
accessibilityComponentType: true,
accessibilityLiveRegion: true,
accessibilityRole: true,
accessibilityStates: true,
accessibilityTraits: true,
importantForAccessibility: true,
nativeID: true,
Expand Down

0 comments on commit b5b704d

Please # to comment.