forked from dabit3/react-native-lens-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathViewProfile.js
34 lines (33 loc) · 832 Bytes
/
ViewProfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { Profile } from '@lens-protocol/react-native-lens-ui-kit'
export default function ProfileView({
route, navigation
}) {
return (
<Profile
profile={route.params.profile}
onFollowingPress={
profile => {
console.log("PROFILE:::: ", profile)
navigation.push("ViewFollowing", {
ethereumAddress: profile.ownedBy
})
}
}
onProfileImagePress={
publication => {
navigation.push("ViewProfile", {
profile: publication.profile,
})
}
}
onCommentPress={
publication => {
const publicationId = publication.mirrorOf ? publication.mirrorOf.id : publication.id
navigation.push('ViewComments', {
publicationId
})
}
}
/>
)
}