解析 axios.get JSON Return 用于显示
Parse axios.get JSON Return for Display
我正在尝试显示来自 imgur API 的一些图像。
我发出了一个 axios GET 请求,请求 return 一个 ARRAY.
This the code with the request
这个项目是用react native做的
谢谢! :)
您未对 API 的响应执行任何操作。您需要将 getImageFrom
的结果分配给 state.dataSource
.
我正在尝试显示来自 imgur API 的一些图像。 我发出了一个 axios GET 请求,请求 return 一个 ARRAY.
This the code with the request
这个项目是用react native做的
谢谢! :)
您未对 API 的响应执行任何操作。您需要将 getImageFrom
的结果分配给 state.dataSource
.