mockingbot / react-native-zip-archive

Zip archive utility for react-native
MIT License
422 stars 153 forks source link

ailed to extract file Zip file size less than minimum expected z #318

Open elkhiari opened 1 week ago

elkhiari commented 1 week ago

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

plrthink commented 1 week ago

Could you attach the file? so I can debug with it.

plrthink commented 1 week ago

And you're operating on Android or iOS? and also the system version and the RN version?