#maverick_reactnative-error
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1285632281079451718
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- maverickdoge_api, 36 minutes ago, 5 messages
Hey @umbral dagger ! Which exact end to end doc are you following right now?
maverick_reactnative-error
you say "like this". Does that mean you aren't really following that doc?
no I am only following that onc
gotcha, let me have a look
๐
Do you see the same error when you are using StripeProvider directly here @umbral dagger ?
Like what does it show when you hover over in your second screenshot?
Mostly this just seems like a type error where StripeProvider expects that children are ReactElement but you are trying to use ReactNode
So yeah what happens if you update your type for children to be ReactElement?
Can you show me your children type declaration there?
But when i put the provider hight in the higherachy than there is not error in the editior but still the same runtime error
Hmm yeah was wondering if it would be happier higher up. Did you completely rebuild when you changed this?
Might just be cached
i restarted and busted the cache but still same runtime error
The runtime error is the Native Event Emitter error?
yes
And that error goes away if you remove StripeProvider?
exactly
What version of the React Native SDK are you using?
And what version of the Stripe React Native SDK?
"react-native": "0.74.2", "@stripe/stripe-react-native": "0.37.2",
I'm seeing various things related to that error in terms of needing to clear cache and reinstall your pods, like: https://stackoverflow.com/questions/69083890/invariant-violation-new-nativeeventemitter-requires-a-non-null-argument and https://github.com/transistorsoft/react-native-background-fetch/issues/478
I'd be pretty surprised if this is directly related to just adding your StripeProvider component
Can you do the above? Remove your podfile and re-install. Explicitly clear your cache. Then rebuild?
so I am using expo so just clrear the cache from the terminal command, And I can also send a clip of the app working as soon as I remove the stripe provider
Is the stripe sdk using native code?
I believe so
You can see the SDK at: https://github.com/stripe/stripe-react-native
That said, the next steps then are to create a fresh bare-bones project where you can reproduce the error by just adding StripeProvider and then you'll want to write into our Support team via https://support.stripe.com/contact/login and provide a way for us to reproduce using that bare-bones project. That's really the only way we can investigate further here... I haven't heard any other reports of this issue and I'm not sure what else is going on with your local environment so hard for me to say really.