#Ronjones32
1 messages ยท Page 1 of 1 (latest)
Hello! I'm not very familiar with React Native, but I'll help as much as I can! Is there a specific guide you're following?
Yes! and thank you, https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=payment-sheet
I am on "Stripe Initialization"
And you added/installed @stripe/stripe-react-native successfully?
Yes I have
Are you using yarn or npm?
yarn
What was the output of the yarn add @stripe/stripe-react-native command, if you still have it?
Or what happens if you run it again?
And this is in the same directory where the code you're working on lives?
Yes it is
And you're still getting the same errors as before?
Yes, i just retested to make sure
What does your import statement for Stripe look like?
import { StripeProvider } from '@stripe/stripe-react-native';
It really seems like something is going wrong with that import, like the Stripe React Native library was installed in the wrong place. I'm honestly not sure what else to suggest. Let me see if I can find someone who's better at React Native than I am to help...
Ok thank you for your assistance
Hi there ๐
After running yarn add, were you able to run pod install in the iOS directory successfully?
if not, can you run pod install in the ios directory?
Yes I was able to, there was no issues there as well
Hmm interesting, what command are you using to run the app?
I am running it from xcode but it would be yarn ios
Yes and I have not tested on android yet
Can you test it on Android? Would help narrow down if the issue is with a specific platform config
Ok testing now
I need to do some gradle updates before I can test on android. Is it possiblt to resolve through iOS or should I contact later?
possible*
At the moment, I'm not sure what's stopping the app from recognising the installation of the SDK. if it works on android then it means something is missing from the iOS config.
Can you share the dependencies you have in your package.json?
what version of react and react-native are you running?
react native - "0.70.6"
react - "18.1.0"
Gotcha. Hmm, running out of ideas.
Try deleting the node_modules folder and running yarn again.
Something in your project config is causing this. As far as I can tell, it doesn't have anything to do with the stripe-react-native SDK
hmm ๐ฆ yeah our best bet at this point is to try running the app on android and see if it triggers the same error.