This PR introduces a comprehensive set of updates to the react-native-zip-stream module, providing full implementations of essential ZIP archive functions. The key additions and improvements include:
Implemented Functions
unzipFile
Extracts all contents of a ZIP file to a specified destination directory, ensuring consistent functionality across both iOS and Android platforms.
createZipFile
Enables the creation of a new ZIP file from the contents of a specified directory, providing a straightforward way to archive files programmatically.
unzipFileWithProgress
Introduces progress tracking during the extraction of ZIP files, making it easier to manage and monitor the extraction process, especially for large archives.
Code Enhancements
Input Validation
Applied across all functions to ensure that inputs such as file paths are valid, reducing the risk of runtime errors.
Error Handling
Enhanced error handling within both the JavaScript and native code, providing clear and informative error messages to aid in troubleshooting.
This PR introduces a comprehensive set of updates to the
react-native-zip-stream
module, providing full implementations of essential ZIP archive functions. The key additions and improvements include:Implemented Functions
unzipFile
createZipFile
unzipFileWithProgress
Code Enhancements
Input Validation
Error Handling