aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-02 18:39:01 -0400
committerIvan Chen <ivan@tagg.id>2021-07-02 18:39:01 -0400
commit0d395be1bef9ecddbd15f796df621d4279e5e546 (patch)
treeabc54e66e380e9f1ed7e987e8f645adade044613 /src
parentdb542dce029f0925781a1e15d9c652d252b9a8d2 (diff)
Remove black plus icon
Diffstat (limited to 'src')
-rw-r--r--src/components/moments/Moment.tsx34
1 files changed, 1 insertions, 33 deletions
diff --git a/src/components/moments/Moment.tsx b/src/components/moments/Moment.tsx
index 1e1cadce..d0c31c98 100644
--- a/src/components/moments/Moment.tsx
+++ b/src/components/moments/Moment.tsx
@@ -1,6 +1,6 @@
import {useNavigation} from '@react-navigation/native';
import React from 'react';
-import {Alert, StyleProp, StyleSheet, View, ViewStyle} from 'react-native';
+import {StyleProp, StyleSheet, View, ViewStyle} from 'react-native';
import {Text} from 'react-native-animatable';
import {ScrollView, TouchableOpacity} from 'react-native-gesture-handler';
import LinearGradient from 'react-native-linear-gradient';
@@ -12,8 +12,6 @@ import UpIcon from '../../assets/icons/up_icon.svg';
import {TAGG_LIGHT_BLUE} from '../../constants';
import {MomentType, ScreenType} from '../../types';
import {normalize, SCREEN_WIDTH} from '../../utils';
-import {navigateToVideoPicker} from '../../utils/camera';
-import ImagePicker from 'react-native-image-crop-picker';
import MomentTile from './MomentTile';
interface MomentProps {
@@ -97,36 +95,6 @@ const Moment: React.FC<MomentProps> = ({
<PlusIcon
width={23}
height={23}
- onPress={() =>
- Alert.alert('Video Upload', 'pick one', [
- {
- text: 'gallery',
- onPress: () =>
- navigateToVideoPicker((vid) =>
- navigateToCaptionScreenForVideo(vid.path),
- ),
- },
- {
- text: 'camera (simulator will not work)',
- onPress: () =>
- ImagePicker.openCamera({
- mediaType: 'video',
- })
- .then((vid) => {
- if (vid.path) {
- navigateToCaptionScreenForVideo(vid.path);
- }
- })
- .catch((err) => console.error(err)),
- },
- ])
- }
- color={'black'}
- style={styles.horizontalMargin}
- />
- <PlusIcon
- width={23}
- height={23}
onPress={navigateToCameraScreen}
color={TAGG_LIGHT_BLUE}
style={styles.horizontalMargin}