react-native-flash-message
react-native-flash-message copied to clipboard
Check if message already exists
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?
Any update ?? Related to check if the flash message is shown or not ?
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.