Updating useeffect
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { Text, ScrollView, FlatList, StyleSheet, View, Linking } from 'react-native';
|
||||
import React, { useState } from 'react';
|
||||
import { Text, ScrollView, FlatList, StyleSheet, View } from 'react-native';
|
||||
import Hyperlink from 'react-native-hyperlink'
|
||||
import { Avatar, Button, Card, Title, Chip } from 'react-native-paper';
|
||||
import { Button, Card, Chip } from 'react-native-paper';
|
||||
import API from './../API.js';
|
||||
import UserName from './UserName.js';
|
||||
import Media from './Media.js';
|
||||
@@ -62,7 +62,7 @@ let Post = (props) => {
|
||||
{!post.nonOrganicType ?
|
||||
<View>
|
||||
<Text style={styles.userName}>
|
||||
<UserName profileid={post.profileid} />
|
||||
<UserName profileid={post.profileid}/>
|
||||
{toProfileText}
|
||||
<Text style={{ fontWeight: 'normal', fontSize: 12 }}>
|
||||
{" " + Moment(post.createdAt).fromNow()}
|
||||
|
||||
Reference in New Issue
Block a user