Skip to content

Commit ef3d8b2

Browse files
Ziqi Chenfacebook-github-bot
Ziqi Chen
authored andcommittedJul 10, 2018
Unreverting Marketplace change for Inverted Color Ignorance
Summary: Un-reverted Diff D8528543 Context: Diff itself is the exact same as the old one. There's actually nothing wrong with this diff, it was originally reverted because of iOS compatibility issue on exposing `accessibilityIgnoresInvertcolors` API to javascript, which has now been handled and fixed in this D8599698. This means I can now set the property `accessibilityIgnoresInvertColors` -------------------------- Added Smart Inversion Compatibility to Marketplace on iOS so that photos don't appear inverted Added Property to View for Ignoring Color Inversion Applied Property to Images on marketplace. **Note: Android doesn't support smart inversion Reviewed By: PeteTheHeat Differential Revision: D8737594 fbshipit-source-id: 86080d45dec773ede4d3828fcda8870f546df691
1 parent 1ee6396 commit ef3d8b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎Libraries/Image/ImageBackground.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ class ImageBackground extends React.Component<$FlowFixMeProps> {
6060
const {children, style, imageStyle, imageRef, ...props} = this.props;
6161

6262
return (
63-
<View style={style} ref={this._captureRef}>
63+
<View
64+
accessibilityIgnoresInvertColors={true}
65+
style={style}
66+
ref={this._captureRef}>
6467
<Image
6568
{...props}
6669
style={[

0 commit comments

Comments
 (0)