Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast not showing values inputed #538

Open
FrederickOB opened this issue Apr 2, 2024 · 0 comments
Open

Toast not showing values inputed #538

FrederickOB opened this issue Apr 2, 2024 · 0 comments

Comments

@FrederickOB
Copy link

FrederickOB commented Apr 2, 2024

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

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant