didisouzacosta
uncompress-react-native
Kotlin

Simple library to decompress files .zip, .rar, .cbz, .cbr in React Native.

Last updated Apr 13, 2026
47
Stars
3
Forks
30
Issues
0
Stars/day
Attention Score
3
Language breakdown
No language data available.
โ–ธ Files click to expand
README

Uncompress React Native

CI codecov License: MIT contributions welcome

Simple library to decompress files .zip, .rar, .cbz and .cbr in React Native.

Preview iOS Preview Android

Installation

yarn add uncompress-react-native

or

npm install uncompress-react-native

iOS Pods installation

After installing the library, you can install pods using the command: cd ios && pod install && cd ..

โ€ข If you will have problems with the installation of the dependency UnrarKit, you need add in your Podfile use_frameworks!

โ€ข If you will have problems with [CP-User] Generate Specs after add useframeworks!, you can modify your postinstall to fix.

The solution discussion reference

post_install do |installer|
  reactnativepost_install(installer)

installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.buildsettings['BUILDLIBRARYFORDISTRIBUTION'] = 'YES' end

if (target.name&.eql?('FBReactNativeSpec')) target.buildphases.each do |buildphase| if (buildphase.respondto?(:name) && build_phase.name.eql?('[CP-User] Generate Specs')) target.buildphases.move(buildphase, 0) end end end end end

Usage

import Uncompress from 'uncompress-react-native';

// ... await Uncompress.extract({ filePath: 'temp/sample_comic.cbr', destination: 'data/comic', }); // ...

Extract protected file

// ...
await Uncompress.extract({
  filePath: 'temp/sampleprotectedcomic.cbr',
  destination: 'data/comic',
  password: '123',
});
// ...

Override files after extraction if successful

// ...
await Uncompress.extract({
  filePath: 'temp/sampleprotectedcomic.cbr',
  destination: 'data/comic',
  override: true,
});
// ...

Checks whether the file is password protected

// ...
const isProtected = await Uncompress.isProtected({
  filePath: 'temp/sampleprotectedcomic.cbr',
});

console.log(isProtected); // ...

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

Credits

License

MIT

ยฉ 2026 GitRepoTrend ยท didisouzacosta/uncompress-react-native ยท Updated daily from GitHub