aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/ProfileBody.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/profile/ProfileBody.tsx')
-rw-r--r--src/components/profile/ProfileBody.tsx19
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}>