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

Toast disappears as soon as appears #138

Open
Yandamuri opened this issue Feb 17, 2021 · 2 comments
Open

Toast disappears as soon as appears #138

Yandamuri opened this issue Feb 17, 2021 · 2 comments

Comments

@Yandamuri
Copy link

This is my Toast configuration

  Toast.show(toastComponent, {
	duration: Toast.durations.LONG,
	position: -99, 
	shadow: false,
	animation: true,
	hideOnPress: true,
	delay: 0,
	backgroundColor: Colors.APP_BACKGROUND
});

As per documentation Toast.durations.LONG means 3500(I ma not sure if it is milliseconds). But in my case Toast disappears as soon as appears. IF I give value 5000 then it remains up to 2 seconds.

  1. Duration is milliseconds or not?
  2. IF it is milliseconds why toast disappears immediately when duration is Toast.durations.LONG(3500)
@shadowgroundz
Copy link

shadowgroundz commented Jun 7, 2021

+1

@clemi-mage-me
Copy link

I had better result after settings the duration param to an absurde number like 1000000000
Since the used time unit is not provided in the documentation i guess it uses nanoseconds ?

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

3 participants