diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/moments/Moment.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/moments/Moment.tsx b/src/components/moments/Moment.tsx index 2e813142..9449271b 100644 --- a/src/components/moments/Moment.tsx +++ b/src/components/moments/Moment.tsx @@ -41,7 +41,7 @@ const Moment: React.FC<MomentProps> = ({ }) => { const navigation = useNavigation(); - const handleUploadMoment = () => { + const navigateToCameraScreen = () => { navigation.navigate('CameraScreen', { title, screenType, @@ -84,7 +84,7 @@ const Moment: React.FC<MomentProps> = ({ <PlusIcon width={23} height={23} - onPress={() => handleUploadMoment()} + onPress={() => navigateToCameraScreen()} color={TAGG_LIGHT_BLUE} style={styles.horizontalMargin} /> @@ -114,7 +114,7 @@ const Moment: React.FC<MomentProps> = ({ /> ))} {(images === undefined || images.length === 0) && !userXId && ( - <TouchableOpacity onPress={() => handleUploadMoment()}> + <TouchableOpacity onPress={() => navigateToCameraScreen()}> <LinearGradient colors={['rgba(105, 141, 211, 1)', 'rgba(105, 141, 211, 0.3)']}> <View style={styles.defaultImage}> |