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

If I touch and hold toast, it never hides

Open calintamas opened this issue 3 years ago • 14 comments

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

calintamas avatar Dec 19 '21 10:12 calintamas

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.

dev-babar avatar Feb 06 '22 21:02 dev-babar

@calintamas any update on this

Facing the same issue here.

doougui avatar Apr 01 '22 18:04 doougui

same issue here

sushantWemotive avatar Apr 06 '22 10:04 sushantWemotive

any solution ?

mrshahzeb7 avatar Apr 29 '22 08:04 mrshahzeb7

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

mrshahzeb7 avatar Apr 29 '22 09:04 mrshahzeb7

Same issue here, toasts won't hide. I would say it's critical bug.

LukasMod avatar Nov 29 '22 15:11 LukasMod