react-native-http-cache error

ios: /node_modules/react-native-http-cache/ios/RCTHttpCache/RCTHttpCache.m 下做如下更改

#import "RCTImageLoader.h" -> #import "React/RCTImageLoader.h"

#import "RCTBridge.h" -> #import "React/RCTBridge.h"

android: /node_modules/react-native-http-cache/android/src/main/java/cn/reactnative/httpcache/HttpCacheModule.java 下做如下更改

getMainDiskStorageCache 替换为-> getMainFileCache

getSmallImageDiskStorageCache 替换为-> getSmallImageFileCache

参考自:https://www.fresco-cn.org/javadoc/reference/com/facebook/imagepipeline/core/ImagePipelineFactory.html


转自:RN 0.43 不支持 · Issue #16 · reactnativecn/react-native-http-cache · GitHub

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容