aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/moments/Moment.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/moments/Moment.tsx b/src/components/moments/Moment.tsx
index 34b2c7ea..a0f66cc5 100644
--- a/src/components/moments/Moment.tsx
+++ b/src/components/moments/Moment.tsx
@@ -102,11 +102,15 @@ const Moment: React.FC<MomentProps> = ({
mediaType: 'photo',
})
.then((picture) => {
- if ('path' in picture) {
+ if (picture.path && picture.filename) {
navigation.navigate('CaptionScreen', {
screenType,
title: title,
- image: picture,
+ media: {
+ filename: picture.filename,
+ uri: picture.path,
+ type: 'image',
+ },
});
}
})