Hi I\'m starting with javascript and react-native and I\'m trying to figure out this problem for hours now. Can someone explain me how to get all the documents from firestor
I made it work this way:
async getMarkers() { const markers = []; await firebase.firestore().collection('events').get() .then(querySnapshot => { querySnapshot.docs.forEach(doc => { markers.push(doc.data()); }); }); return markers; }