TabBar Navigator and Proper adding posts and comments

This commit is contained in:
aeroreyna
2022-03-08 20:20:17 -08:00
parent 983ac258b3
commit 82e0ded56c
8 changed files with 121 additions and 47 deletions

View File

@@ -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: {