diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-06-23 15:21:14 -0400 |
|---|---|---|
| committer | Ivan Chen <ivan@tagg.id> | 2021-06-23 15:21:14 -0400 |
| commit | 545caa8c32e383551b1f1d5de61a300bc39100ff (patch) | |
| tree | eb15f73f0a3956ed4a46869728908590a15efe51 /src/components | |
| parent | cd5863264d0fe954e63d8cc93fc4ee6ab509f49b (diff) | |
Cleanup code, Update route params for Caption Screen
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/moments/Moment.tsx | 8 |
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', + }, }); } }) |
