calintamas / react-native-toast-message

Animated toast message component for React Native
MIT License
1.6k stars 252 forks source link

Toast not showing values inputed #538

Open FrederickOB opened 3 months ago

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

`