tableflip / react-native-toaster

Simple top-pop toast feedback messages for React Native, also Redux compatible
ISC License
85 stars 29 forks source link

Crash when trying to manually hide a toast that is already auto-hiding #22

Open brkastner opened 5 years ago

brkastner commented 5 years ago

Steps to reproduce the issue:

  1. Create a toast message
  2. Wait for the toast to begin hiding automatically
  3. Once the hide animation starts, quickly try to hide the message manually.

The following error appears if you successfully interact with the message while the animation is still going: img_4477

I'm assuming this is because message is set to undefined once the animation starts but the toast component still allows interaction.