Fix null source bug in Image view while accessing source's uri

Summary: Fix null source bug in Image view while accessing source's uri

Reviewed By: achen1

Differential Revision: D8739379

fbshipit-source-id: 0338b19135fa8af9ebe599cabbc9e321fb0906a5
This commit is contained in:
Himabindu Gadupudi 2018-07-05 15:08:41 -07:00 committed by Facebook Github Bot
parent 5b6ff01764
commit 46ffb10627

View File

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