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

271
Views
Firebase with React-native getting error on updating document

I'm trying to make simple crud application but I'm getting this error while updating doc: [Unhandled promise rejection: TypeError: t is not an Object. (evaluating '"_delegate" in t')]

Here is following code what I do:

  //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>
        );
 })}

thanks.

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!