New post view + fix moment location

This commit is contained in:
Adolfo Reyna
2022-12-22 23:06:21 -05:00
parent 3d50977520
commit 1c0dbbbe84
7 changed files with 156 additions and 27 deletions

View File

@@ -62,20 +62,29 @@ let ProfileCardHorizontal = ({ profileid, hideIcon, profileObj }) => {
<Card.Content>
<View style={{ flexDirection: "row" }}>
<View onPress={onPress}>
<Avatar.Image size={100} source={{ uri: photoUrl }} />
<Avatar.Image size={75} source={{ uri: photoUrl }} />
</View>
<View style={{paddingLeft: 10}}>
<View style={{ paddingLeft: 10 }}>
<Title onPress={onPress} numberOfLines={1}>
<Text>
{profile.profile && profile.profile.firstName} {profile.profile && profile.profile.lastName}
</Text>
</Title>
<Paragraph lineBreakMode="clip" numberOfLines={3} style={{width:250}}>{profile.profile?.description}</Paragraph>
</View>
<View>
<FollowButton profile={profile._id ? profile : {_id: profileid}} />
<Paragraph lineBreakMode="clip" numberOfLines={3} style={{ width: 250 }}>{profile.profile?.description}</Paragraph>
</View>
</View>
<View style={{
position: "absolute",
top: 0,
right: 0,
width: 50,
height: 50,
backgroundColor:"#ddd",
borderRadius: 25,
opacity: 0.7
}}>
<FollowButton profile={profile._id ? profile : { _id: profileid }} />
</View>
</Card.Content>
</Card>