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
317 stars 25 forks source link

Imperative dismiss #34

Open samducker opened 2 months ago

samducker commented 2 months 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 2 months ago

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