Building fragdenstaat still fails

The current build of Fragdenstaat fails with the following error message (https://f-droid.org/wiki/page/de.fragdenstaat.app/lastbuild_30):

Could not find method compileOnly() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.