NotificationsTab

This commit is contained in:
aeroreyna
2022-03-12 21:39:57 -08:00
parent dd3685b862
commit 0e8c0a17d0
6 changed files with 111 additions and 3 deletions

View File

@@ -17,6 +17,9 @@ let Profile = ({ navigation, route }) => {
let r = await API.getMe();
setMeProfile(r);
if (route.params && route.params.profileid) {
API.getUserProfile(route.params.profileid).then(({profile}) => {
navigation.setOptions({ title: profile.firstName + " " + profile.lastName });
});
API.getPosts(route.params.profileid).then((data) => {
setPosts(data);
});