Hi Guys,
I am a trying to execute code in a screen after I run navigation.goBack(), it was working completely fine for a couple of releases but now it suddenly stopped executing the code after the navigation.goBack(). It is supposed to work something like this:
let personalPostTask = async () => {
navigation.goBack();
await createPost({
variables: {
postContent: {
media: mediaFileArray,
body: postText,
privacy: postStatus,
},
tags: {
userTags: TempList,
},
},
});
//From this line it is not executing.
dispatchUserState({
type: UserAction.Update,
});
Toast.showWithGravity(
"Personal Post Uploaded Successfully !",
Toast.SHORT,
Toast.BOTTOM
);
Hi Guys, I am a trying to execute code in a screen after I run navigation.goBack(), it was working completely fine for a couple of releases but now it suddenly stopped executing the code after the navigation.goBack(). It is supposed to work something like this:
let personalPostTask = async () => { navigation.goBack();
};