In my react native app I'm using firebase notifications, in my foreground notifications handler I have this method, I change value to true, wait 3 seconds and then change back to false, but it's not working...
App.js
const handleForegroundNotification = (message) =>
{
const typingTimer = null;
mapStore.setNotificationModalVisible(true);
mapStore.setNotificationModalData(message);
typingTimer = setTimeout(() => {
mapStore.setNotificationModalVisible(true);
}, 5000);
};
There is no error log.