美文网首页
react-native-http-cache

react-native-http-cache

作者: 黎峰麟 | 来源:发表于2019-03-26 17:35 被阅读0次

    https://github.com/reactnativecn/react-native-http-cache

    由于版本太旧安装文档集成有些问题 ios 没有太大问题 安卓有些问题

    1 修改 react-native-http-cache   build.gradle和自己的编译版本相同 少个警告
     
      android {
    
        compileSdkVersion 27
        buildToolsVersion "27.0.3"
    
        defaultConfig {
            minSdkVersion 16
            targetSdkVersion 26
            versionCode 1
            versionName "1.0"
        }
    }
    
    
    2 修改  react-native-http-cache   HttpCacheModule.java  两个方法报错了
    // FileCache cache1 = ImagePipelineFactory.getInstance().getMainDiskStorageCache();
       FileCache cache1 = ImagePipelineFactory.getInstance().getMainFileCache();
    
    // FileCache cache2 = ImagePipelineFactory.getInstance().getSmallImageDiskStorageCache();
    FileCache cache2 = ImagePipelineFactory.getInstance().getSmallImageFileCache();
    
    
    

    相关文章

      网友评论

          本文标题:react-native-http-cache

          本文链接:https://www.haomeiwen.com/subject/zwsnvqtx.html