Undefined is not an object on unzip() - Android
marcopacurariu3 opened this issue · comments
Hello,
I'm having an expo managed project and I installed multiple 6.0.x versions and I keep getting: [TypeError: undefined is not an object (evaluating '_reactNativeZipArchive.default.unzip')]
I'm using react-native 0.69.6
I keep reading that the auto linking function might not work, but how is that possible? I installed the library by using:
npm install react-native-zip-archive --save
I'm not using expo directly, it's happening once I am running: npx expo run:android -d SM_G980F
and checking it on Android.
What should I do?
Thank you!
Figured it out, I was using the following import:
import ZipArchive from 'react-native-zip-archive';
but I should have used:
import { unzip } from "react-native-zip-archive";