Promise is never returned in firestore().collection(‘Users’).add({ name: ‘Ada Lovelace’, age: 30 })
I’m using React Native with Expo and library @react-native-firebase/firestore
.
I’m trying to add a document to a collection in Firestore but the promise never returns so nothing is inserted in firestore.
The promise that never resolves is this one:
Updating array in Firestore using arrayUnion()
I’m new to working with databases and need some help with updating an array in my Firestore using arrayUnion(). This is a React Native project using Expo.