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

Persistent Toast #49

Open
Abramovick opened this issue Jan 7, 2025 · 1 comment
Open

Persistent Toast #49

Abramovick opened this issue Jan 7, 2025 · 1 comment

Comments

@Abramovick
Copy link

Is it possible to have the duration be Infinity or Indefinite?
My use case is when there's no internet I'd like the modal to be non dismissible and stay indefinitely until i can programmatically dismiss it when the internet comes back.
The docs aren't clear, so please help.

@Abramovick
Copy link
Author

Abramovick commented Jan 7, 2025

I've seen you can pass duration: Infinity like

  Burnt.toast({
      title: 'Download canceled.',
      message: 'Please try again.',
      preset: 'error',
      duration: Infinity,
    });

Seems to work on iOS, but it doesn't work on android

@Abramovick Abramovick reopened this Jan 7, 2025
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