Skip to content

Commit 614a0a9

Browse files
committed
fix(dependencies): add expo-image patch to resolves CUICatalog: Invalid asset name supplied: ''
- Included the expo-image package with its corresponding patch in package.json. - Updated pnpm-lock.yaml to reflect the new expo-image dependency and its patch hash. These changes ensure that the expo-image package is properly integrated and managed within the project. Signed-off-by: Innei <[email protected]>
1 parent a0cfcd7 commit 614a0a9

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@
9797
"@microflash/remark-callout-directives": "patches/@microflash__remark-callout-directives.patch",
9898
"react-native-track-player": "patches/react-native-track-player.patch",
9999
"react-native-sheet-transitions": "patches/react-native-sheet-transitions.patch",
100-
"react-native-screens": "patches/react-native-screens.patch"
100+
"react-native-screens": "patches/react-native-screens.patch",
101+
"expo-image": "patches/expo-image.patch"
101102
},
102103
"overrides": {
103104
"@electron/node-gyp": "10.2.0-electron.2",

patches/expo-image.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/ios/ImageView.swift b/ios/ImageView.swift
2+
index 2ab4cba8309c79e1bff903766e0013d17a3f382e..a93991bc7358cc7f1f5bca2f5f1e9650e36a24db 100644
3+
--- a/ios/ImageView.swift
4+
+++ b/ios/ImageView.swift
5+
@@ -249,7 +249,7 @@ public final class ImageView: ExpoView {
6+
return nil
7+
}()
8+
9+
- if let path, let local = UIImage(named: path) {
10+
+ if let path, !path.isEmpty, let local = UIImage(named: path) {
11+
renderSourceImage(local)
12+
return true
13+
}

pnpm-lock.yaml

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)