Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

89
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!