Open jjspscl opened 2 years ago
I don't know why but it works when I set config file as v1.
const toastConfig = {
InformationToast: InformationToast,
ErrorToast: ErrorToast
};
it works, but it causes type error. I'm also struggling with that problem.
Where are you running Toast?
@henrique-in , if not show toast , you can try this on navigation container https://github.com/calintamas/react-native-toast-message/blob/2945e4a90e601bd4c02416e431c70414186b0e2b/docs/navigation-usage.md
use error: (props) => { ... }
instead of errorToast: (props) => ( ... }
Describe the bug I have followed the setup instructions where I put a Toast instance in the end of the root component
When I call/show the toast in a Route/Component it shows the following error
Any help would be appreciated
Environment (please complete the following information):