-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Controlled hiding of Toasts #1287
Comments
@LonelyGriffin currently NativeBase does not support this. Will raise a feature request. |
This kinda thing would be useful. FWIW the "hide all" should be as simple as adding the following code to
However, the larger idea of being able to have multiple toasts (and being able to refer to each) is something I'm interested in in general. |
(Just seen your PR adding the hide method done exactly the way I describe. D'oh.) |
@alexrussell @LonelyGriffin Could you please share the PR link |
Found it |
@LonelyGriffin Having multiple Toast popping up for a single screen, this is something inappropriate as per design guidelines / use-case |
@SupriyaKalghatgi having multiple toasts simultaneously might not be best UX. However, I don't see why can't we still enable hiding the single toast using Implementation provided by @LonelyGriffin is quite appropriate and in fact, it cleans NB Toast implementation a bit. I'd suggest giving this PR another chance since it was closed abruptly. |
Added with 2.7.2 |
This function should be added to the documentation. And specified how it's intended to work. Because it doesn't work as expected for me. I also don't see tests for hiding a Toast or, for example, showing one, hiding, showing a 2nd; which is what I'm trying to do. |
hide(), show() have been added to config table of Toast in latest docs versions... |
Hi guys! I want to hide all Toasts by my action or other event.
For example:
Is it possible?
The text was updated successfully, but these errors were encountered: