Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missed import on react-native link for android #4

Open
ryzhak opened this issue Aug 8, 2019 · 0 comments
Open

Missed import on react-native link for android #4

ryzhak opened this issue Aug 8, 2019 · 0 comments

Comments

@ryzhak
Copy link

ryzhak commented Aug 8, 2019

On android when you run react-native link react-native-cloudpayments on a clean project you should manually add the following to your MainApplication.java:

import com.rncloudpayments.RCTCloudPaymentsPackage;
...
protected List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
            new RCTCloudPaymentsPackage()
    );
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant