Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast is not rendering inside api call response #139

Open
Yandamuri opened this issue Apr 13, 2021 · 4 comments
Open

Toast is not rendering inside api call response #139

Yandamuri opened this issue Apr 13, 2021 · 4 comments

Comments

@Yandamuri
Copy link

Let's say following is my api call

axios(`https://smapleapicall.com`).then(repsonse => {
     toast('toast inside api call response');
})

Toast message is not rendering If I call toast inside a api call response. But If I call as shown below outside api call response it's works well

axios(https://smapleapicall.com).then(repsonse => {

})

toast('toast outside api call');

Can someone help me to avoid this error?

"react-native-root-toast": "3.2.1"
"react-native": "0.63.2"

@sunnylqm
Copy link
Collaborator

First please make sure the request goes well without exception. Could you try replacing toast with alert to see if it's really invoked in then?

@Yandamuri
Copy link
Author

@sunnylqm except toast message, what ever I do inside api call response, executing well with out any failure.

@SiSa68
Copy link

SiSa68 commented Jun 2, 2021

Same here..

@shadowgroundz
Copy link

Have you install react-native-root-siblings?
I already install and config. Toast show in my response API. But close very fast (maybe 1s). I already set to 10.000ms but not effect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants