react-native-root-toast icon indicating copy to clipboard operation
react-native-root-toast copied to clipboard

Toast disappears as soon as appears

Open Yandamuri opened this issue 4 years ago • 2 comments

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)

Yandamuri avatar Feb 17 '21 10:02 Yandamuri

+1

shadowgroundz avatar Jun 07 '21 04:06 shadowgroundz

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 ?

clemi-mage-me avatar Apr 24 '24 08:04 clemi-mage-me