aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs/TaggPostFooter.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2020-10-07 20:17:13 -0400
committerGitHub <noreply@github.com>2020-10-07 20:17:13 -0400
commit0f332655d2b64700623f25912d2610517fb954b6 (patch)
treebf0f4b6fb1f5f226dea4a6ee9d312d28a258bda4 /src/components/taggs/TaggPostFooter.tsx
parente86478f52e191c52fea20980278174af46f50953 (diff)
[TMA-186] Instagram Taggs - Frontend (#45)
* Renamed Moments(Bar) to Taggs(Bar) * created initial navigation and empty social media taggs screen * made more progress for the header styling * Finished social media taggs screen, organized code structure * linted stuff D: * moved bar height utility function to utils * moved color constants to constants * moved avatar title * updated comments for social media taggs * NOW the file is there
Diffstat (limited to 'src/components/taggs/TaggPostFooter.tsx')
-rw-r--r--src/components/taggs/TaggPostFooter.tsx65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/components/taggs/TaggPostFooter.tsx b/src/components/taggs/TaggPostFooter.tsx
new file mode 100644
index 00000000..024670a8
--- /dev/null
+++ b/src/components/taggs/TaggPostFooter.tsx
@@ -0,0 +1,65 @@
+import React from 'react';
+import {StyleSheet, View} from 'react-native';
+import {Text} from 'react-native-animatable';
+
+interface TaggPostFooterProps {
+ likes: number;
+ handle: string;
+ caption: string;
+ date: string;
+}
+const TaggPostFooter: React.FC<TaggPostFooterProps> = ({
+ likes,
+ handle,
+ caption,
+ date,
+}) => {
+ return (
+ <View>
+ <View style={styles.container}>
+ <Text style={styles.likeText}>{likes} likes</Text>
+ <View style={styles.captionContainer}>
+ <Text style={styles.handleText}>
+ {handle}
+ <Text style={styles.captionText}> {caption}</Text>
+ </Text>
+ </View>
+ <Text style={styles.dateText}>{date}</Text>
+ </View>
+ </View>
+ );
+};
+
+const styles = StyleSheet.create({
+ container: {
+ flexDirection: 'column',
+ padding: 10,
+ paddingBottom: '10%',
+ },
+ captionContainer: {
+ paddingVertical: 10,
+ },
+ likeText: {
+ fontSize: 14,
+ fontWeight: 'bold',
+ color: 'white',
+ },
+ handleText: {
+ fontSize: 14,
+ fontWeight: 'bold',
+ color: '#8FA9C2',
+ },
+ captionText: {
+ fontSize: 14,
+ fontWeight: 'bold',
+ color: 'white',
+ flexWrap: 'wrap',
+ },
+ dateText: {
+ fontSize: 14,
+ fontWeight: 'bold',
+ color: '#8FA9C2',
+ },
+});
+
+export default TaggPostFooter;