baronha / ting

🍞 Flexible and customizable React Native toast/alert notifications with support for positioning, custom rendering, click handlers, and duration control. Written in Swift and Kotlin
MIT License
300 stars 21 forks source link

Imperative dismiss #34

Open samducker opened 2 weeks ago

samducker commented 2 weeks ago

Hi I noticed the loading preset,

is it possible in this library to wait for example for some data to load then imperatively dismiss it in your code e.g.

alert or toast({preset: 'loading', title: 'Fetching data...'})

then when needed

.dismiss();

mrevanzak commented 1 week ago

there is a dismissAlert() function if i take a look at the native code. turns out it can be import too