Skip to content

Commit 1ece24f

Browse files
authored
support relative path expo image (#1005)
1 parent a5f5678 commit 1ece24f

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
@@ -60,7 +60,7 @@ const ExpoImage: React.FC<ExtendedImageProps> = ({
6060
source &&
6161
typeof source === "object" &&
6262
"uri" in source &&
63-
!/^(http|https):\/\/|^data:/.test(source.uri || "")
63+
!/^(http|https):\/\/|^data:|^\//.test(source.uri || "")
6464
) {
6565
imageSource = { uri: "" };
6666
}

0 commit comments

Comments
 (0)