Skip to content

Commit

Permalink
Added Ignore color inversion prop to components in marketplace
Browse files Browse the repository at this point in the history
Summary:
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: D8528543

fbshipit-source-id: 63caf592bc71e6fe9db7e70c72b56d32873be048
  • Loading branch information
Ziqi Chen authored and facebook-github-bot committed Jun 21, 2018
1 parent af22607 commit 68a2454
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Libraries/Image/ImageBackground.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ class ImageBackground extends React.Component<$FlowFixMeProps> {
const {children, style, imageStyle, imageRef, ...props} = this.props;

return (
<View style={style} ref={this._captureRef}>
<View
accessibilityIgnoresInvertColors={true}
style={style}
ref={this._captureRef}>
<Image
{...props}
style={[
Expand Down

0 comments on commit 68a2454

Please sign in to comment.