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

99
Views
Devolver datos de Firestore en React Native

Tengo una función en la que obtengo datos de Firestore, me gustaría mostrar los datos de la función en una lista de secciones en React Native. Este es mi código:

La consulta:

 function EntryDate() { firebase .firestore() .collection("journal") .doc(currentUserUID) .collection("entry") .get() .then((querySnapshot) => { querySnapshot.forEach((entry) => { const { title, createdAt, getMonth, getDay, sortTime } = entry.data(); }); }); }

La variable donde paso la función:

 const DATA = [ { title: EntryDate(), data: todos, }, ];

y donde quiero que regresen los datos:

 <SectionList style={{ marginLeft: 15 }} sections={DATA} keyExtractor={(item) => item.id} renderItem={({ item }) => <TextLog {...item} />} renderSectionHeader={({ section: { title } }) => <Text>{title}</Text>} />
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!