question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

If I touch and hold toast, it never hides

See original GitHub issue

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_

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
mrshahzeb7commented, Apr 29, 2022

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

0reactions
LukasModcommented, Nov 29, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Weeknd - The Hills (Lyrics) - YouTube
... sent your friends home Keep on tryna hide it but your friends know ... time I'd ever call you mine I only...
Read more >
Swiping Toast up re-creates it · Issue #280 - GitHub
Not sure if it is intentional behavior, but if I touch and hold toast, it never hides ( autoHide is set to true...
Read more >
Android - Custom Toast touch outside event - Stack Overflow
I want my Toast to disappear when I touch anywhere (clicking button, touching layout...), but it doesn't. I read the Toast.class file and...
Read more >
Body Language - When We Are Judging Or Trying To Deceive
When someone uses a hand-to-face gesture, it doesn't always mean that he or she is lying. It does indicate, however, that the person...
Read more >
Toast Tips - cloudfront.net
To enter 'Quick Edit Mode' tap and hold any menu button and you will be based if you want to enter, select 'OK.'...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found