import moment from 'moment'; import React from 'react'; import {Image, StyleSheet, View} from 'react-native'; import {PostType} from '../../types'; import {SCREEN_WIDTH} from '../../utils'; import TaggPostFooter from './TaggPostFooter'; interface TaggPostProps { post: PostType; } const TaggPost: React.FC = ({post: {socialHandle, data}}) => { const parsedDate = moment(data?.timestamp || ''); const date = parsedDate.isValid() ? parsedDate.format('MMM d') : ''; return ( <> {data && } ); }; const styles = StyleSheet.create({ image: { width: SCREEN_WIDTH, height: SCREEN_WIDTH, backgroundColor: '#eee', }, }); export default TaggPost;