diff options
author | Ivan Chen <ivan@tagg.id> | 2021-06-25 16:26:19 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-06-25 16:26:19 -0400 |
commit | 8198e4349dd589be2fbc9fb42aefaa8c5915bef5 (patch) | |
tree | 6f48168171c9c7dee1ffa74b49b3e9e4ca34fc20 /src/components | |
parent | a6bc1f1a06a08bd842ba0b3bd00a88cea9bd9971 (diff) |
Fix video dimension in tagging screen
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/moments/Moment.tsx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/components/moments/Moment.tsx b/src/components/moments/Moment.tsx index 47de1c6a..a43a2830 100644 --- a/src/components/moments/Moment.tsx +++ b/src/components/moments/Moment.tsx @@ -157,12 +157,14 @@ const Moment: React.FC<MomentProps> = ({ onPress: () => ImagePicker.openCamera({ mediaType: 'video', - }).then((vid) => { - console.log(vid); - if (vid.path) { - navigateToCaptionScreenForVideo(vid.path); - } - }), + }) + .then((vid) => { + console.log(vid); + if (vid.path) { + navigateToCaptionScreenForVideo(vid.path); + } + }) + .catch((err) => console.error(err)), }, ]) } |