I have an Expo project to which I'm trying to add react-native-zip-archive. I've followed the docs exactly, but autolinking isn’t working on Android (haven’t tried iOS). I get an error on the package index file, TypeError: null is not an object (evaluating 'RNZipArchive.unzip').
I suspect there’s something in the package gradle that's to blame, but I don't know enough to debug it. Anything look off here?
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
}
lintOptions {
abortOnError false
}
}
repositories {
mavenCentral()
}
dependencies {
implementation "com.facebook.react:react-native:+"
implementation "net.lingala:zip4j:1.3.3"
}