react-native-toast-message
react-native-toast-message copied to clipboard
If I touch and hold toast, it never hides
Not sure if it is intentional behavior, but if I touch and hold toast, it never hides (autoHide is set to true). The hiding animation takes place, but toast stays on screen infinitely. You may need to pull your finger down a bit after the hiding animation is complete in order to display toast again. I get this behavior on iOS as well as Android. Package version: 2.1.0
Originally posted by @danieldaukapp in https://github.com/calintamas/react-native-toast-message/issues/280#issuecomment-990677323
Yeah, also facing the same issue, touch and swipe lil bit down and hold then release, it never hides. And if you hold longer it hide and reappear when release the touch.
@calintamas any update on this
Facing the same issue here.
same issue here
any solution ?
used this logic it is working for me
const {isVisible} = props;
const [isVisibleToast, setisVisibleToast] = useState(false);
useEffect(() => { if (isVisible) { setisVisibleToast(true); } else { setTimeout(() => { setisVisibleToast(false); }, 2000); } }, [isVisible]);
return isVisibleToast ? ( <View style={styles.container}> { //custom Toast } </View>) : null
Same issue here, toasts won't hide. I would say it's critical bug.