#Ronjones32

1 messages ยท Page 1 of 1 (latest)

grand thunderBOT
fiery leaf
#

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?

cosmic marsh
fiery leaf
#

And you added/installed @stripe/stripe-react-native successfully?

cosmic marsh
#

Yes I have

fiery leaf
#

Are you using yarn or npm?

cosmic marsh
#

yarn

fiery leaf
#

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?

cosmic marsh
#

Ill try running it again now

fiery leaf
#

And this is in the same directory where the code you're working on lives?

cosmic marsh
#

Yes it is

fiery leaf
#

And you're still getting the same errors as before?

cosmic marsh
#

Yes, i just retested to make sure

fiery leaf
#

What does your import statement for Stripe look like?

cosmic marsh
#

import { StripeProvider } from '@stripe/stripe-react-native';

fiery leaf
#

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...

cosmic marsh
#

Ok thank you for your assistance

chrome flax
#

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?

cosmic marsh
#

Yes I was able to, there was no issues there as well

chrome flax
#

Hmm interesting, what command are you using to run the app?

cosmic marsh
#

I am running it from xcode but it would be yarn ios

chrome flax
#

did you mean yarn run ios?

#

do you see the same error if run the app on android?

cosmic marsh
#

Yes and I have not tested on android yet

chrome flax
#

Can you test it on Android? Would help narrow down if the issue is with a specific platform config

cosmic marsh
#

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*

chrome flax
#

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?

cosmic marsh
grand thunderBOT
chrome flax
#

what version of react and react-native are you running?

cosmic marsh
#

react native - "0.70.6"
react - "18.1.0"

chrome flax
#

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

cosmic marsh
#

Ok I'll try that

#

Unfortunately that did not do the trick either

chrome flax
#

hmm ๐Ÿ˜ฆ yeah our best bet at this point is to try running the app on android and see if it triggers the same error.