Skip to content

Commit 28c7ccf

Browse files
himabindugadupudifacebook-github-bot
authored andcommittedJul 3, 2018
Image source without uri should return null.
Summary: When image source doesn't have uri and is neither an array, it should return null. Reviewed By: yungsters Differential Revision: D8728688 fbshipit-source-id: 915c4f3f450907ee3435ac99b1fe9849738766da
1 parent bbc8bb1 commit 28c7ccf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎Libraries/Image/Image.android.js

+4
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ let Image = (
212212
);
213213
}
214214

215+
if (!source.uri && !Array.isArray(source)) {
216+
return null;
217+
}
218+
215219
let style;
216220
let sources;
217221
if (source?.uri != null) {

0 commit comments

Comments
 (0)