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

92
Vistas
I want to create a react native todo app with firebase

I want to log in user by signInAnonymously and Every user data save their uid My all document is clear but I can't read data from firebase

Please Explain and give some solution.

 let ref = firestore()
       .collection('users')  
       .doc(userId)
       .collection('lists')

const userId=()=>{   return auth().currentUser.uid; }

hare is My user id and collection of data

const getList = () => {

  let newlist = [];
  ref.onSnapshot(querySnapshot => {
    querySnapshot.forEach(doc => {
      newlist.push({
        id: doc.id,
        ...doc.data(),

      })
      console.log(doc);
    })
  });
  setList(newlist)
}


//
useEffect(() => {
  //
  //
  auth().onAuthStateChanged(user => {
    if (user) {
      setUser(user)
    } else {
      auth()
        .signInAnonymously()
        .catch(err => {})
    }
  })
}, []);
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