From 0142023fab8f8a9bddf35b9a9cd40d54345186c0 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Wed, 23 Jun 2021 17:13:03 -0400 Subject: Add ability to view video taggs --- src/components/moments/Moment.tsx | 6 ----- src/components/moments/MomentPostContent.tsx | 39 ++++++++++++++-------------- 2 files changed, 20 insertions(+), 25 deletions(-) (limited to 'src') diff --git a/src/components/moments/Moment.tsx b/src/components/moments/Moment.tsx index 1c266307..8ff05824 100644 --- a/src/components/moments/Moment.tsx +++ b/src/components/moments/Moment.tsx @@ -78,12 +78,6 @@ const Moment: React.FC = ({ mediaType: 'video', }) .then(async (vid) => { - // if ('path' in vid) { - // console.log(vid); - // // vid.path is compressed mp4, vid.sourceURL is uncompressed original - // if (vid.path) { - // uploadVideo(vid.path); - // } if (vid.path) { const randHash = Math.random().toString(36).substring(7); navigation.navigate('CaptionScreen', { diff --git a/src/components/moments/MomentPostContent.tsx b/src/components/moments/MomentPostContent.tsx index 27a68e47..4d2554d8 100644 --- a/src/components/moments/MomentPostContent.tsx +++ b/src/components/moments/MomentPostContent.tsx @@ -82,7 +82,6 @@ const MomentPostContent: React.FC = ({ setHideText(false); } }, [keyboardVisible, hideText]); - return ( = ({ setFadeValue(new Animated.Value(0)); }}> {isVideo ? ( - - {visible && !isVideo && ( + {visible && (