aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs/SocialMediaInfo.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/SocialMediaInfo.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/SocialMediaInfo.tsx')
-rw-r--r--src/components/taggs/SocialMediaInfo.tsx55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/components/taggs/SocialMediaInfo.tsx b/src/components/taggs/SocialMediaInfo.tsx
new file mode 100644
index 00000000..0e93660d
--- /dev/null
+++ b/src/components/taggs/SocialMediaInfo.tsx
@@ -0,0 +1,55 @@
+import React from 'react';
+import {StyleSheet, Text, View} from 'react-native';
+import {SocialIcon} from '..';
+
+interface SocialMediaInfoProps {
+ fullname: string;
+ type: string;
+ handle: string;
+}
+
+const SocialMediaInfo: React.FC<SocialMediaInfoProps> = ({
+ fullname,
+ type,
+ handle,
+}) => {
+ return (
+ <View style={styles.container}>
+ <Text style={styles.handle}> @{handle} </Text>
+ <View style={styles.row}>
+ <View />
+ <SocialIcon style={styles.icon} social={type} />
+ <Text style={styles.name}>{fullname}</Text>
+ </View>
+ </View>
+ );
+};
+
+const styles = StyleSheet.create({
+ container: {
+ alignItems: 'center',
+ paddingBottom: 40,
+ },
+ handle: {
+ color: 'white',
+ fontSize: 12,
+ },
+ name: {
+ color: 'white',
+ fontWeight: 'bold',
+ fontSize: 20,
+ paddingLeft: 5,
+ },
+ icon: {
+ width: 20,
+ height: 20,
+ },
+ row: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ justifyContent: 'space-between',
+ padding: 10,
+ },
+});
+
+export default SocialMediaInfo;