'how to display a firebase collection with react native?
Solution 1:[1]
Try something like this:
snapshot.then(snap => {
const tableau = []
snap.forEach(doc => {
tableau.push({id: doc.id, ... doc.data()})
})
// set state here
// setTableauData([...tableau])
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Cyrus Zei |


