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

Unable to delay between two roasts. #516

Open
SMARTMICROWORLD opened this issue Dec 14, 2023 · 1 comment
Open

Unable to delay between two roasts. #516

SMARTMICROWORLD opened this issue Dec 14, 2023 · 1 comment

Comments

@SMARTMICROWORLD
Copy link

I want to display 2nd toast after delay of 8 sec, but below code is not working. How can i achieve that?

Toast.show({
type: 'infoToast',
text1: 'Hellow',
visibilityTime: 8000,
});
Toast.show({
type: 'tomatoToast',
text1: 'Hellow',
visibilityTime: 8000,
});

@knightmate
Copy link

knightmate commented Dec 18, 2023

use setTimout(callSecndtaostFun,delay);
this will not be exactly 8sec but least 8 sec

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

2 participants