react-native-flash-message icon indicating copy to clipboard operation
react-native-flash-message copied to clipboard

Check if message already exists

Open Inveth opened this issue 4 years ago • 2 comments

Hi,

Is there any way to check whether an message already exists?

I got an interval that is trying to show it each 10 seconds, but I don't want to if there is one already - otherwise they just animate again. Isn't there like a global id to check whether they exist?

Inveth avatar Feb 27 '20 11:02 Inveth

Any update ?? Related to check if the flash message is shown or not ?

tarikfp avatar May 05 '21 13:05 tarikfp

Hi @tarikpnr and @Inveth

Sorry about that, by now I recomendo to use the events 'onShow' and 'onHide' to catch up yourself in a state or global state variable whether the message are shown (true) and when gone hidden (false).

I know that it's a lot more complex than what you ask, but somehow solve the problem by now.

lucasferreira avatar May 05 '21 15:05 lucasferreira