From 18a82b6f3f8407b96bb49489d46ca0e34cf83546 Mon Sep 17 00:00:00 2001 From: Tom Hastjarjanto Date: Fri, 7 Aug 2015 21:55:50 +0200 Subject: [PATCH 1/2] Fix wrong property name --- Libraries/Image/Image.ios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Image/Image.ios.js b/Libraries/Image/Image.ios.js index 1674fb8a505dda..7517b2e960627a 100644 --- a/Libraries/Image/Image.ios.js +++ b/Libraries/Image/Image.ios.js @@ -173,7 +173,7 @@ var Image = React.createClass({ resizeMode={resizeMode} tintColor={tintColor} src={source.uri} - defaultSrc={defaultSource.uri} + defaultImageSrc={defaultSource.uri} /> ); } From 53682143906b989c05a9eeb9f700610705b796cd Mon Sep 17 00:00:00 2001 From: Tom Hastjarjanto Date: Fri, 7 Aug 2015 22:01:16 +0200 Subject: [PATCH 2/2] set image source to default image if super.image is null --- Libraries/Image/RCTImageView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Image/RCTImageView.m b/Libraries/Image/RCTImageView.m index e0a26a3ceba80a..26fbb98eb6e4f8 100644 --- a/Libraries/Image/RCTImageView.m +++ b/Libraries/Image/RCTImageView.m @@ -69,7 +69,7 @@ - (void)_updateImage - (void)setImage:(UIImage *)image { - if (image != super.image) { + if (image != super.image || super.image == nil) { super.image = image ?: _defaultImage; [self _updateImage]; }