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