Adding change of profiles and Profile on tab bar

This commit is contained in:
Adolfo Reyna
2023-01-24 22:42:22 -05:00
parent 47f3ad5919
commit 93b84ada33
4 changed files with 158 additions and 30 deletions

View File

@@ -96,7 +96,7 @@ let NewPostView = (props) => {
API.newPost(postContent + " " + extraContent.join(" "), props.route.params?.toProfile).then((newPost) => {
setPostContent('');
setExtraContent([]);
navigation.goBack();
navigation.navigate('Feed', {reRender: Math.random()});
//if (newPostCB) newPostCB(newPost);
});
}