Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

64
Vistas
React Native: use settimeout to change mobx store value with delay

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.

7 months ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos