Skip to content

Commit

Permalink
added accessibilityIgnoresInvertColors to module.exports in ViewPropT…
Browse files Browse the repository at this point in the history
…ypes

Summary:
Previously, I exposed the "accessibilityIgnoresInvertColors" API on iOS to react native views.

In this diff, I added this property to the `module.exports` in `ViewPropTypes` so that the property can be accessed by other files.

Reviewed By: PeteTheHeat

Differential Revision: D8977515

fbshipit-source-id: d0aba5eac3bc1528e18b6027f3f055e5f4a1147a
  • Loading branch information
Ziqi Chen authored and facebook-github-bot committed Jul 25, 2018
1 parent b5b704d commit c36e8b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Libraries/Components/View/ViewPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ module.exports = {
*/
accessibilityActions: PropTypes.arrayOf(PropTypes.string),

/**
* Prevents view from being inverted if set to true and color inversion is turned on.
*
* @platform ios
*/
accessibilityIgnoresInvertColors: PropTypes.bool,

/**
* Indicates to accessibility services to treat UI component like a
* native one. Works for Android only.
Expand Down

0 comments on commit c36e8b3

Please sign in to comment.