Search code examples
reactjsapireact-nativeaxiosimgur

Parse axios.get JSON Return for Display


I'm trying to display some Images from imgur API. I have made an axios GET request, and the request return an ARRAY.

This the code with the request

This project is made with react native

Thank you ! :)


Solution

  • You're doing nothing with the response from the API. You need to assign the result of getImageFrom to state.dataSource.