Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix image preview not rendered on iOS

Ammar Ahmed8869224de29a
diff --git a/apps/mobile/app/components/dialogs/attach-image-dialog/index.tsx b/apps/mobile/app/components/dialogs/attach-image-dialog/index.tsx
index 2a7c8afcc..21b7dc48a 100644
--- a/apps/mobile/app/components/dialogs/attach-image-dialog/index.tsx
+++ b/apps/mobile/app/components/dialogs/attach-image-dialog/index.tsx
@@ -71,7 +71,10 @@ export default function AttachImage({
<TouchableOpacity key={item.filename} activeOpacity={0.9}>
<Image
source={{
- uri: Platform.OS === "ios" ? item.sourceURL : item.path
+ uri:
+ Platform.OS === "ios"
+ ? item.sourceURL || item.path
+ : item.path
}}
style={{
width: 100,