react-native-zip-archive
react-native-zip-archive copied to clipboard
ailed to extract file Zip file size less than minimum expected z
Describe the bug [ react-native-zip-archive](console.error: error Error: Failed to extract file Zip file size less than minimum expected zip file size. Probably not a zip file or a corrupted zip file, js engine: hermes)
const unzipWithProgress = async (
zipFilePath: string,
unzipDestination: string,
dispatch: any
) => {
const progressSubscription = subscribe(({ progress }) => {
const progressPercentage = progress * 100;
console.log(Unzipping progress: ${progressPercentage}%);
dispatch(updateProgress(progressPercentage)); // Dispatch progress updates
});
try {
await unzip(zipFilePath, unzipDestination);
} catch (error) {
console.error("Unzipping failed", error);
throw error;
} finally {
progressSubscription.remove();
}
};
info size is more than 200mb
Could you attach the file? so I can debug with it.
And you're operating on Android or iOS? and also the system version and the RN version?