TabBar Navigator and Proper adding posts and comments
This commit is contained in:
@@ -14,11 +14,11 @@ let UserName = (props) => {
|
||||
}, [props.profileid]);
|
||||
|
||||
return (
|
||||
<Text onPress={()=>{navigation.navigate('Feed', {profileid: props.profileid})}} >{profile.profile && profile.profile.firstName} {profile.profile && profile.profile.lastName}</Text>
|
||||
<Text onPress={()=>{navigation.navigate('Profile', {profileid: props.profileid})}} >{profile.profile && profile.profile.firstName} {profile.profile && profile.profile.lastName}</Text>
|
||||
);
|
||||
}
|
||||
|
||||
export default UserName;
|
||||
export default React.memo(UserName);
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user