ios - 解压速度太慢

标签 ios reactjs react-native react-native-ios

我正在使用 react-native-zip-archive 来解压我的文件。

这是我的源代码。

            unzip(res.path(), targetPath)
              .then((path) => {
                RNFS.unlink(res.path())
                  .then(() => {
                    console.log('FILE DELETED');
                  })
                  // `unlink` will throw an error, if the item to unlink does not exist
                  .catch((err) => {
                    console.log(err.message);
                  });
              })
              .catch((error) => {
              });

Zip 文件为 235MB。提取它大约需要 30 分钟。 有没有提高解压速度的方法?

感谢您的宝贵时间。

最佳答案

我建议你使用这个 zip 库。它很有用而且压缩得很好 pako

关于ios - 解压速度太慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46546049/

相关文章:

javascript - 在 react 的渲染函数中迭代数据时澄清箭头函数的语法

javascript - React Native 使用代理获取本地服务器

amazon-web-services - 使用预先签名的 URL React Native 上传到 S3

ios - 单点触控 : Create iOS AppStore-Version from command line

ios - iOS数据导入策略/设计

reactjs - 如何在 react 日历中格式化日期?

javascript - TypeError : _This. Prop 未定义

ios - 核心数据: executeFetchRequest:error: returns objects with no managedObjectContext

ios - 如何摆脱 UIAlertView 半透明?

reactjs - Redux-React : value returned by a dispatch function is not being passed to child component