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

278
Views
Firebase con React-native obteniendo un error al actualizar el documento

Estoy tratando de hacer una aplicación crud simple, pero recibo este error al actualizar el documento: [Unhandled promise rejection: TypeError: t is not an Object. (evaluating '"_delegate" in t')]

Aquí está el siguiente código de lo que hago:

 //update user const updateUser = async (id, age) => { const newFields = {age: age + 1}; const userDoc = doc(usersRef, id) await updateDoc(id, newFields).then(console.log('updated succesfully')) };
 //jsx {users.map((user) => { return ( <View key={user.name} style={{ width: "30%", marginLeft: "35%", marginBottom: 20 }}> <Text>name: {user.name}</Text> <Text>age: {user.age}</Text> <Button onPress={() => updateUser(user.id, user.age)} title="increase age" /> </View> ); })}

Gracias.

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!