I have a JSON file like this :
{
"type": {
"1": {
"book_name": "Lorem ipsum",
},
"2": {
"book_name": "Lorem ipsum",
}
}
I need to iterate each name of this json file.
In my project I import the local json file like this :
import books from '../data/books.json';
To access each name, I can do for example :
const names = books.type;
<Text>{names[1].book_name}</Text>
I'm trying to render my datas into the view with the map function but I don't understand how to use it in my case..
