nandorojo / burnt

Crunchy toasts for React Native. 🍞
MIT License
1.16k stars 36 forks source link

Do work when alert is dismissed/finished #40

Open StefanWallin opened 7 months ago

StefanWallin commented 7 months ago

Would you be open to integrate (PR or just issue feature request) a feature to trigger code to be run once the alert or toast is dismissed or timed out?

When it comes to helping out with a PR, would exposing the promise from BurntModule's async methods be enough, or would you prefer some onDismissed callback?

nandorojo commented 5 months ago

I think there is likely an on close type callback on web and iOS that we could expose. I’m not sure about Android, but I’m open to a PR if you can find them!