onPress events don't work with custom toast components
See original GitHub issuewhether using BaseToast
or my own component with TouchableOpacity
, the onPress
events are not firing. I think this is probably to do with the PanResponder in the root component. can anyone help?
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
How to create a custom toast component with React
Go into your toast component. On the button, add an onClick with a method called deleteToast , which takes a toast ID as...
Read more >ReactJS: Why is my custom functional toast component ...
First problem that I see with your code is that you are keeping two sources of truth for toast list. One is passed...
Read more >Create custom toast components with React
In this tutorial, I will show you how to use React to create a custom toast component as well as React hooks such...
Read more >Toast Messages in React Native: A Step-by-Step Guide - Waldo
A built-in component shows toast messages in Android. However, we need to write custom code to show toast messages in the iOS platform....
Read more >ShowToastEvent notification is not displayed in LWC
So what usually happens with toast events? · You dispatch an event which is most probably set to propagate outside shadow DOM boundary...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For a quick & dirty fix, src/index.js can be changed like so. change the onMoveShouldSetPanResponder function to be something like this:
this is still broken for me. the
src/index.js
has this in it:did it change back?