Skip to content

Commit c36e8b3

Browse files
Ziqi Chenfacebook-github-bot
Ziqi Chen
authored andcommitted
added accessibilityIgnoresInvertColors to module.exports in ViewPropTypes
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
1 parent b5b704d commit c36e8b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Libraries/Components/View/ViewPropTypes.js

+7
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ module.exports = {
135135
*/
136136
accessibilityActions: PropTypes.arrayOf(PropTypes.string),
137137

138+
/**
139+
* Prevents view from being inverted if set to true and color inversion is turned on.
140+
*
141+
* @platform ios
142+
*/
143+
accessibilityIgnoresInvertColors: PropTypes.bool,
144+
138145
/**
139146
* Indicates to accessibility services to treat UI component like a
140147
* native one. Works for Android only.

0 commit comments

Comments
 (0)