You have to pass nothing because your response already contains all the list.
.then((json) => setData(json))
If u will print the data or response you will get to know the better. Put console , things will be more clearer.
Let us consider this example.If you will consider this request.
https://reactnative.dev/movies.json
Here you have to put the json.movies
to get all the list.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…