From 390649ab4e3750de64ebc828c3be1dd0cdfb5379 Mon Sep 17 00:00:00 2001 From: Alex Kotliarskyi Date: Wed, 23 Sep 2015 17:25:41 -0700 Subject: [PATCH] Support tintColor for managed image assets Reviewed By: @nicklockwood Differential Revision: D2443089 --- Libraries/Image/Image.ios.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Libraries/Image/Image.ios.js b/Libraries/Image/Image.ios.js index f641167c7..48fcb278b 100644 --- a/Libraries/Image/Image.ios.js +++ b/Libraries/Image/Image.ios.js @@ -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 (