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

Error on iOS: cannot find getConstants() of null #20

Open
kuldip-simform opened this issue May 9, 2024 · 1 comment
Open

Error on iOS: cannot find getConstants() of null #20

kuldip-simform opened this issue May 9, 2024 · 1 comment

Comments

@kuldip-simform
Copy link

Hi, I have added this package in expo app for react native. For android this works perfectly but once I run app on iOS, I was getting this error. cannot find getConstants() of null.

Can you tell me what should I do to get rid of this error on iOS?

Thank you.

@alex-vasylchenko
Copy link

@kuldip-simform do smth like this in your code. In this case you will never call import "@google/react-native-make-payment" in IOS app

const usePlatformPay = isIOS
    ? require("@/services/ApplePay").useApplePay
    : require("@/services/GooglePay").useGooglePay;

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

2 participants