对fetch / XMLHttpRequest和ImageView进行本机http缓存控制
的iOS
安卓
安装
$ npm install react-native-http-cache2 --save
iOS:在您的XCode项目中进行链接
从node_modules/react-native-http-cache2/ios文件夹中链接react-native-http-cache2库, node_modules/react-native-http-cache2/ios。 不要忘记将其添加到项目的“构建阶段”。
Android:链接到您的Gradle项目
android/settings.gradle添加到android/settings.gradle
include ':RCTHttpCache'
project(':RCTHttpCache').projectDir = n
评论0
最新资源