This is my data in a state called childData: {}
Object {
"11-5-2019": Object {
"18:32": Object {
"color": "Brown",
"time": "18:32",
},
"18:33": Object {
"color": "Red",
"time": "18:33",
},
},
}
I want to show all this data on one page. I've tried to use a map but it gives me an error. Also I have tried a FlatList.
{this.childData.map(item, index =>
<View key={index}>
<Text>{item}</Text>
</View>
)}
But I don't know how to get all the data. I want to have the data like this in text:
11-05-2019
18:32
brown
18:32
18:33
red
18:33
