Open hardik323 opened 2 years ago
Even I got the same error, Anyone how to resolve this issue??
I faced the same error got it resolved by doing manuall linking of library
I faced the same error got it resolved by doing manuall linking of library
@panchamsheoran77 Can you please advice?
@hardik323 please follow manually linking steps for this library automatic linking is not working well for this package
include ':react-native-upi-payment' project(':react-native-upi-payment').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-upi-payment/android')
dependencies { compile project(':react-native-upi-payment') }
import com.upi.payment.UpiPaymentPackage;
4.Add this in the Main Application Class
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
//... Other packages
new UpiPaymentPackage() // <- Add this line
);
}
Thanks @panchamsheoran77 😊