Open FrederickOB opened 7 months ago
when I call Toast.show() outside a component function it just show a default message of "no results found" rather than the test1 I pass to it. see the code below to get more details
`const axiosInstance = () => {/ ... /} axiosInstance.interceptors.response.use( (response) => { console.log();
return response; }, (error) => { if (!error.response) { return new Promise((resolve, reject) => { resolve(error); }); } Toast.show({ type: "error", text1: "Oops something went wrong", });
`
when I call Toast.show() outside a component function it just show a default message of "no results found" rather than the test1 I pass to it. see the code below to get more details
`const axiosInstance = () => {/ ... /} axiosInstance.interceptors.response.use( (response) => { console.log();
`