Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

183
Vistas
Use listener of Firebase Realtime database in React native

I'm looking for a way to launch a python process that update my firebase Realtime Database when I click on a given button of my react native App.

I also want that my screen shows a loading animation until the end of the python process.

To do this, I have the following function that update the field "is_calculateMatch" to True.

getMatchs = () => {
        Firebase.database().ref('users/usersStrategy/is_calculateMatch').set(true);
        //Loading animation : TODO
    }

In the python side, I use a listener that catch the changes, run the task and update "is_calculateMatch" to False

def listener(event):
    #... Run python code
    db.reference(firebase_db_path_insert + "/is_calculateMatch").set(False)
firebase_admin.db.reference("users/usersStrategy").listen(listener)

My question is how to add the "Loading animation" part and more generally, how to add a listener on the react native side?

Thanks for your help

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda