Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

178
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda