Unzip speed is too slow

Viewed 562

I am using react-native-zip-archive for unzip my file.

Here's my source code.

            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 file is 235MB. And extracting it takes around 30min. Is there anyway to improve extracting speed?

Thanks for your time.

1 Answers
Related