mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
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:
parent
5b6ff01764
commit
46ffb10627
@ -212,7 +212,7 @@ let Image = (
|
||||
);
|
||||
}
|
||||
|
||||
if (!source.uri && !Array.isArray(source)) {
|
||||
if (source && !source?.uri && !Array.isArray(source)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user