fetch plugin for react-native. (It is based the react-native official code, just change some codes)
just replace file in node_modules/react-native/Libraries/Fetch/fetch.js
, and reload your react-native app.
Get more error tips on the network level
.
For example:
Could not connect to the server.
react-native的网络插件(基于react-native官方的fetch的代码修改)
用fetch.js
替换项目中的node_modules/react-native/Libraries/Fetch/fetch.js
即可,替换后需重新加载react-native应用。
新增一些处于网络层的错误提示。
如下:
Cloud not connect to the server.