Open SMARTMICROWORLD opened 11 months ago
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, });
use setTimout(callSecndtaostFun,delay); this will not be exactly 8sec but least 8 sec
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, });