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
This commit is contained in:
Himabindu Gadupudi 2018-07-03 15:31:48 -07:00 committed by Facebook Github Bot
parent bbc8bb1f9d
commit 28c7ccf785

View File

@ -212,6 +212,10 @@ let Image = (
);
}
if (!source.uri && !Array.isArray(source)) {
return null;
}
let style;
let sources;
if (source?.uri != null) {