toast.show() function is not working when the app starts #195
Unanswered
wildhunter4137
asked this question in
Q&A
Replies: 1 comment
-
Hi, try adding this in your main app.js. <Toast ref={(ref) => global['toast'] = ref} duration={5000} placement='top'/> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While i am using
react-native-toast-notifications
in react native project, i have useduseToast()
in my splashscreen.I have wrapped splashscreen component using
ToastProvider
Here is it
And here is my splashscreen.ts file
And if i start the app, it will send a ping to server and get the response.
And after i get the response, this error has occurred
I dont know what the reason is, maybe there is delay to initialize the toast using useToast() hook?
I would appreciate it if someone could help me with this problem.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions