diff options
author | Ivan Chen <ivan@tagg.id> | 2021-06-22 18:37:12 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-06-22 18:37:12 -0400 |
commit | 49dfe6a52e09bdb218e2b1ceb5a8df9ed46873f1 (patch) | |
tree | ef9847b8c6ddbd060fb52dc6a366ccc25d1688af /src/components/profile/ProfileBody.tsx | |
parent | ee890e517dd3688a4fd63c64592fdb6ce683d7b4 (diff) |
Squashed commit of the following:
commit b1c2002caa349dc96f81d3cc3e00ea545f4e654e
Author: Ivan Chen <ivan@tagg.id>
Date: Tue Jun 22 15:28:18 2021 -0400
Add video for camerea
Diffstat (limited to 'src/components/profile/ProfileBody.tsx')
-rw-r--r-- | src/components/profile/ProfileBody.tsx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/components/profile/ProfileBody.tsx b/src/components/profile/ProfileBody.tsx index c0ee508a..34cf1870 100644 --- a/src/components/profile/ProfileBody.tsx +++ b/src/components/profile/ProfileBody.tsx @@ -1,5 +1,7 @@ import React from 'react'; import {LayoutChangeEvent, Linking, StyleSheet, Text, View} from 'react-native'; +import {TouchableOpacity} from 'react-native-gesture-handler'; +import {launchCamera} from 'react-native-image-picker'; import {useDispatch, useSelector, useStore} from 'react-redux'; import {TAGG_DARK_BLUE, TOGGLE_BUTTON_TYPE} from '../../constants'; import { @@ -80,6 +82,23 @@ const ProfileBody: React.FC<ProfileBodyProps> = ({ ); }}>{`${website}`}</Text> )} + <TouchableOpacity + onPress={() => { + launchCamera( + { + mediaType: 'video', + durationLimit: 60, + videoQuality: 'medium', + }, + (response) => { + console.log(response); + const file = response.assets[0].uri; + console.log(file); + }, + ); + }}> + <Text>foooo</Text> + </TouchableOpacity> {userXId && isBlocked && ( <View style={styles.toggleButtonContainer}> |