Files
Folo/patches/expo-image.patch
T
Innei 614a0a99d6 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 <tukon479@gmail.com>
2025-04-22 13:26:29 +08:00

14 lines
472 B
Diff

diff --git a/ios/ImageView.swift b/ios/ImageView.swift
index 2ab4cba8309c79e1bff903766e0013d17a3f382e..a93991bc7358cc7f1f5bca2f5f1e9650e36a24db 100644
--- a/ios/ImageView.swift
+++ b/ios/ImageView.swift
@@ -249,7 +249,7 @@ public final class ImageView: ExpoView {
return nil
}()
- if let path, let local = UIImage(named: path) {
+ if let path, !path.isEmpty, let local = UIImage(named: path) {
renderSourceImage(local)
return true
}