calintamas / react-native-toast-message

Animated toast message component for React Native
MIT License
1.73k stars 265 forks source link

Toast not showing values inputed #538

Open FrederickOB opened 7 months ago

FrederickOB commented 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",
  });

`