aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/MomentTile.tsx
diff options
context:
space:
mode:
authorAshm Walia <40498934+ashmgarv@users.noreply.github.com>2020-10-22 15:34:21 -0700
committerGitHub <noreply@github.com>2020-10-22 18:34:21 -0400
commitd0237cbb61e5c4d77c7b0cefc50891639646ee91 (patch)
tree5b0c1e33c1043887ad45c06a30173dc469d28228 /src/components/profile/MomentTile.tsx
parent5db451725d6165de16ee11cda608a05e96e481f9 (diff)
[TMA 236] Comments PR (#64)
* Added comments count and retrieve comments * Working draft * The one before cleanup * Finally * Added time icon and major refactoring * Small fix for social media taggs * Addressed review comments
Diffstat (limited to 'src/components/profile/MomentTile.tsx')
-rw-r--r--src/components/profile/MomentTile.tsx33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/components/profile/MomentTile.tsx b/src/components/profile/MomentTile.tsx
deleted file mode 100644
index 70b20d40..00000000
--- a/src/components/profile/MomentTile.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-import {useNavigation} from '@react-navigation/native';
-import React from 'react';
-import {StyleSheet, View, Image, TouchableOpacity} from 'react-native';
-import {MomentType} from 'src/types';
-
-interface MomentTileProps {
- moment: MomentType;
-}
-const MomentTile: React.FC<MomentTileProps> = ({moment}) => {
- const navigation = useNavigation();
- const {path_hash} = moment;
- return (
- <TouchableOpacity
- onPress={() => {
- navigation.navigate('IndividualMoment', {moment});
- }}>
- <View style={styles.image}>
- <Image style={styles.image} source={{uri: path_hash}} />
- </View>
- </TouchableOpacity>
- );
-};
-
-const styles = StyleSheet.create({
- image: {
- aspectRatio: 1,
- height: '100%',
- alignItems: 'center',
- justifyContent: 'center',
- flexDirection: 'column',
- },
-});
-export default MomentTile;