Open 42997455 opened 4 years ago
same error
node_modules/jshare-react-native/android/src/main/java/..../JsharePackage.java文件中添加如下代码。
public JSharePackage() { Logger.SHUTDOWNTOAST = false; Logger.SHUTDOWNLOG = false; }
react-native.config.js
module.exports = {
dependencies: {
'jshare-react-native': {
platforms: {
android: {
packageInstance: 'new JSharePackage(false, false)',
},
},
},
},
};
When I try to run react-native run-android , got this error:
I find it caused by the RN 0.61.5 is auto-link, the auto generated class PackageList.java is as below:
The JSharePackage should be JSharePackage(boolean, boolean), but the auto generated code is without parameter, could you please help with this issue? Thanks!