aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs/SocialMediaInfo.tsx
diff options
context:
space:
mode:
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;