react-native-root-toast
react-native-root-toast copied to clipboard
Toast disappears as soon as appears
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.
- Duration is milliseconds or not?
- IF it is milliseconds why toast disappears immediately when duration is
Toast.durations.LONG(3500)
+1
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 ?