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

Option to Hide Toast on Navigate #543

Open
Keenan-Softserve opened this issue Apr 25, 2024 · 0 comments
Open

Option to Hide Toast on Navigate #543

Keenan-Softserve opened this issue Apr 25, 2024 · 0 comments

Comments

@Keenan-Softserve
Copy link

Keenan-Softserve commented Apr 25, 2024

Is your feature request related to a problem? Please describe.
I want to be able to decide when a toast should persist when navigating to a new screen (using react-navigation).

Describe the solution you'd like
When displaying a toast Toast.show() one of the ToastShowParams (ToastOptions) should have a 'persist:boolean' that determines if the Toast should persist when the screen changes or not.

Additional context

  • I'm mainly using this package for displaying errors. Sometimes I redirect the user to a different screen than the one that produced the error and want to use a Toast to display the error on the new screen (so it should persist, the way it already does).
  • Other times I don't want to force the user to swipe the Toast away, but I also don't want to set a timeout. It should go away once the screen changes.
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