Permalink
Browse files

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
  • Loading branch information...
himabindugadupudi authored and facebook-github-bot committed Jul 3, 2018
1 parent bbc8bb1 commit 28c7ccf785132458fce32c234ce777a6fe475c93
Showing with 4 additions and 0 deletions.
  1. +4 −0 Libraries/Image/Image.android.js
@@ -212,6 +212,10 @@ let Image = (
);
}
if (!source.uri && !Array.isArray(source)) {
return null;
}
let style;
let sources;
if (source?.uri != null) {

0 comments on commit 28c7ccf

Please sign in to comment.