Unzip for React Native App
npm install react-native-unzipliuUnzip for React Native App
This is for GZip file
Version 1.0.3 Add Zip and Unzip function
Version 1.0.7 remove keyboard in Version 1.0.6
``bash`
npm install react-native-unzipliu --save
react-native link react-native-unzipliu
import it into your code
`js`
import { unGzip } from 'react-native-unzipliu';
unGzip(source: string, target: string): Promise
> unzip from source file to target file
Example
`js${DocumentDirectoryPath}/myFile.zip
const sourcePath = ;${DocumentDirectoryPath}/myFile.txt
const targetPath = ;
unGzip(sourcePath, targetPath)
.then((path) => {
console.log(unzip completed at ${path});``
})
.catch((error) => {
console.log(error);
});