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

135
Visualizações
Can I use a 3rd party React Native library within a cloud function?

I want to do some functionality where my Cloud Function will securely store information it retrieves from firestore into react-native-keychain. My question is I can import the keychain library into my index.js file in my functions folder to use. Such as this:

const keyChain = require("react-native-keychain");

Which gives me this error: enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Cloud Functions run on Google's servers, where no React Native Keychain is available.

If you need the functionality that library provides in your Cloud Functions code, you'll need to look for a different library that provides the functionality in a server-side Node.js environment.

If you need the information from the keychain inside the React Native app to be available to the Cloud Function, you'll need to read it inside your React Native code, and pass it to the Cloud Function when you call it.

about 4 years ago · Juan Pablo Isaza Relatório
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