Skip to content

Commit

Permalink
Support tintColor for managed image assets
Browse files Browse the repository at this point in the history
Reviewed By: @nicklockwood

Differential Revision: D2443089
  • Loading branch information
frantic authored and facebook-github-bot-7 committed Sep 24, 2015
1 parent dc7681e commit 390649a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Libraries/Image/Image.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ var Image = React.createClass({
var resizeMode = this.props.resizeMode || (style || {}).resizeMode || 'cover'; // Workaround for flow bug t7737108
var tintColor = (style || {}).tintColor; // Workaround for flow bug t7737108

// This is a workaround for #8243665. RCTNetworkImageView does not support tintColor
// TODO: Remove this hack once we have one image implementation #8389274
if (isNetwork && tintColor) {
RawImage = RCTImageView;
}

return (
<RawImage
{...this.props}
Expand Down

0 comments on commit 390649a

Please sign in to comment.