RN 0.60.5
@brandingbrand/react-native-leanplum 4.0.0
I get the following error when building for dev on Android:
/Users/me/myapp/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:89: error: constructor RNLeanplumPackage in class RNLeanplumPackage cannot be applied to given types;
new RNLeanplumPackage(),
^
required: Application
found: no arguments
reason: actual and formal argument lists differ in length
1 error
FAILURE: Build failed with an exception.
I figured out a workaround by updating my react-native.config.js as the following:
module.exports = {
dependencies: {
'@brandingbrand/react-native-leanplum': {
platforms: {
android: {
packageInstance: 'new RNLeanplumPackage(getApplication())'
},
},
},
},
};
Then the app builds on Android fine.