TabBar Navigator and Proper adding posts and comments
This commit is contained in:
@@ -14,7 +14,7 @@ let Comment = ({ comment }) => {
|
||||
<View style={{flexDirection: "row", alignItems: "center", justifyContent: "center"}}>
|
||||
<View style={{flex:8}}>
|
||||
<Text style={styles.userName}>
|
||||
<UserName profileid={comment.profileid} />
|
||||
<UserName profileid={comment.profileid} key={comment.profileid} />
|
||||
|
||||
</Text>
|
||||
</View>
|
||||
@@ -32,7 +32,7 @@ let Comment = ({ comment }) => {
|
||||
);
|
||||
}
|
||||
|
||||
export default Comment;
|
||||
export default React.memo(Comment);
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
comment: {
|
||||
|
||||
Reference in New Issue
Block a user