mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
af226078e7
Summary: @public Added a property `accessibilityIgnoresInvertColors (boolean)` to Views which allows the Apple API `accessibilityIgnoresInvertColors` to be used in React Native. Now, when a user has Display: Smart Invert enabled, you can set the property to be true, and things like photos and views with the property set to true will no longer be inverted when Smart Invert is enabled. This property can also be applied to the Image Component. Example Use Case: ``` <Image accessibilityIgnoresInvertColors={true} /> ``` ``` <View accessibilityIgnoresInvertColors={true} /> ``` | Before | After | | ------ | ----- | | ![original](https://user-images.githubusercontent.com/165856/41738737-b62c6ebc-7547-11e8-8ea3-f82239998071.jpg) | ![feeditem](https://user-images.githubusercontent.com/165856/41738749-beef6de2-7547-11e8-9771-b44e513de0fd.jpg) Reviewed By: PeteTheHeat Differential Revision: D8549084 fbshipit-source-id: 82a3bc73c9e6d75d6b50ba013b88127f07692641