问题描述
我打算在 React Native 中构建一个移动应用程序,我熟悉 Prestashop 1.7。我需要知道,如何使用 Rest API 连接 React Native 和 Prestashop 1.7?
请告诉我该怎么做?
提前致谢
解决方法
您可以使用 Axios 库,它非常简单、易于使用且比 Fetch API 更简洁。
这是他们的官方文档网站:https://axios-http.com/
以及他们的 Github 存储库:https://github.com/axios/axios