import React from 'react'; import {Linking, StyleSheet, View} from 'react-native'; import {Text} from 'react-native-animatable'; import {handleOpenSocialUrlOnBrowser} from '../../utils'; import {DateLabel} from '../common'; interface TaggPostFooterProps { likes?: number; handle?: string; caption: string; timestamp: string; social: string; } const TaggPostFooter: React.FC = ({ likes, handle, caption, timestamp, social, }) => { const handleText = handle ? handle : ''; return ( {likes ? {likes} likes : <>} handleOpenSocialUrlOnBrowser(handleText, social)}> {handleText} {caption} ); }; const styles = StyleSheet.create({ container: { flexDirection: 'column', paddingHorizontal: 10, marginBottom: 50, }, captionContainer: { paddingBottom: 30, }, likeText: { fontSize: 14, fontWeight: 'bold', color: 'white', }, handleText: { fontSize: 14, fontWeight: 'bold', color: '#8FA9C2', }, captionText: { fontSize: 14, fontWeight: 'normal', color: 'white', flexWrap: 'wrap', }, }); export default TaggPostFooter;