From b7cba594635f4a6de3582ba4845bfc9757632ba1 Mon Sep 17 00:00:00 2001 From: Brian Kim Date: Tue, 13 Jul 2021 16:01:11 -0400 Subject: Extremely rough working --- src/screens/profile/CaptionScreen.tsx | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'src/screens') diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx index c6cf767f..912865ae 100644 --- a/src/screens/profile/CaptionScreen.tsx +++ b/src/screens/profile/CaptionScreen.tsx @@ -69,8 +69,10 @@ const CaptionScreen: React.FC = ({route, navigation}) => { const [tags, setTags] = useState( selectedTags ? selectedTags : [], ); + const [aspectRatio, setAspectRatio] = useState(1); const [taggedList, setTaggedList] = useState(''); const mediaUri = moment ? moment.moment_url : route.params.media!.uri; + // console.log('mediaUri', mediaUri); // TODO: change this once moment refactor is done const isMediaAVideo = moment ? !( @@ -229,8 +231,8 @@ const CaptionScreen: React.FC = ({route, navigation}) => { {...{title: moment ? moment.moment_category : title ?? ''}} /> {isMediaAVideo ? ( - <> - + {/* (this.videoPlayerRef = ref)} startTime={startTime} // seconds @@ -260,8 +262,24 @@ const CaptionScreen: React.FC = ({route, navigation}) => { setStartTime(e.startTime); setEndTime(e.endTime); }} + /> */} +