aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-08 15:45:38 -0400
committerIvan Chen <ivan@tagg.id>2021-07-09 15:56:47 -0400
commitf9b9a3297dd8d935d0ed5f176451075e192aee49 (patch)
tree8f015e47615a8631ff6dab730685f3ee417b8852 /src
parent12d92de8b9c93a4615952134ca4973049e45952f (diff)
Add navigation to camera tab with big blue plus
Diffstat (limited to 'src')
-rw-r--r--src/components/moments/Moment.tsx10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/components/moments/Moment.tsx b/src/components/moments/Moment.tsx
index b4703e70..a1621f2e 100644
--- a/src/components/moments/Moment.tsx
+++ b/src/components/moments/Moment.tsx
@@ -7,9 +7,9 @@ import LinearGradient from 'react-native-linear-gradient';
import DeleteIcon from '../../assets/icons/delete-logo.svg';
import DownIcon from '../../assets/icons/down_icon.svg';
import BigPlusIcon from '../../assets/icons/plus-icon-white.svg';
-import PlusIcon from '../../assets/icons/plus-icon.svg';
import UpIcon from '../../assets/icons/up_icon.svg';
import {TAGG_LIGHT_BLUE} from '../../constants';
+import * as RootNavigation from '../../RootNavigation';
import {MomentType, ScreenType} from '../../types';
import {normalize, SCREEN_WIDTH} from '../../utils';
import MomentTile from './MomentTile';
@@ -41,12 +41,6 @@ const Moment: React.FC<MomentProps> = ({
}) => {
const navigation = useNavigation();
- const navigateToCameraScreen = () => {
- navigation.navigate('CameraScreen', {
- screenType,
- });
- };
-
return (
<View style={[styles.container, externalStyles?.container]}>
<View style={[styles.header, externalStyles?.header]}>
@@ -106,7 +100,7 @@ const Moment: React.FC<MomentProps> = ({
/>
))}
{(images === undefined || images.length === 0) && !userXId && (
- <TouchableOpacity onPress={navigateToCameraScreen}>
+ <TouchableOpacity onPress={() => RootNavigation.navigate('Upload')}>
<LinearGradient
colors={['rgba(105, 141, 211, 1)', 'rgba(105, 141, 211, 0.3)']}>
<View style={styles.defaultImage}>