diff options
author | Ivan Chen <ivan@tagg.id> | 2021-06-23 15:37:21 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-06-23 15:37:21 -0400 |
commit | f3651f53af4bf2a7163c82bb8c21bc6ec3940b4e (patch) | |
tree | 3b7715facc6435edca1c4aad8b76c29006974d69 /src/screens/profile/CaptionScreen.tsx | |
parent | dc011fdc67f384b2010693d5121192a05b9582cd (diff) |
Add react-native-video
Diffstat (limited to 'src/screens/profile/CaptionScreen.tsx')
-rw-r--r-- | src/screens/profile/CaptionScreen.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx index 48724620..9326ba6a 100644 --- a/src/screens/profile/CaptionScreen.tsx +++ b/src/screens/profile/CaptionScreen.tsx @@ -15,6 +15,7 @@ import { } from 'react-native'; import {MentionInput} from 'react-native-controlled-mentions'; import {Button, normalize} from 'react-native-elements'; +import Video from 'react-native-video'; import {useDispatch, useSelector} from 'react-redux'; import FrontArrow from '../../assets/icons/front-arrow.svg'; import {SearchBackground} from '../../components'; @@ -205,8 +206,7 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => { {...{title: moment ? moment.moment_category : title ?? ''}} /> {isMediaAVideo ? ( - // <Video uri={mediaUri} style={styles.media} /> - <></> + <Video source={{uri: mediaUri}} style={styles.media} /> ) : ( <Image style={styles.media} |