From 8198e4349dd589be2fbc9fb42aefaa8c5915bef5 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Fri, 25 Jun 2021 16:26:19 -0400 Subject: Fix video dimension in tagging screen --- src/components/moments/Moment.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/components') 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 = ({ 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)), }, ]) } -- cgit v1.2.3-70-g09d2