Skip to content

Commit 10d7bdd

Browse files
committed
fix type error
1 parent 02e552a commit 10d7bdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/components/ExpoImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const ExpoImage: React.FC<ExtendedImageProps> = ({
5959
let imageSource = source ?? Config.placeholderImageURL;
6060

6161
if (cacheKey) {
62-
if (typeof source === "object" && "uri" in source) {
62+
if (source && typeof source === "object" && "uri" in source) {
6363
imageSource = {
6464
...source,
6565
cacheKey,

0 commit comments

Comments
 (0)