#vatsa
1 messages · Page 1 of 1 (latest)
Hello
in my react native app, i have a splash screen and then signin screen. after clicking on signin screen, i will be navigated to next page which eventually takes me to the main dashboard. but, after including the StripeProvider in my app.js, after signing in, i am not being taken to next screens
Hmmm StripeProvider shouldn't have any effect on screen navigation
Do you see an error when you try to navigate?
i dotn see any error
dont*
i just get a blank screen, with the styles of the file (styles.root)
Are you attempting to render any Stripe components on that screen?
No
But it works fine when you remove StripeProvider?
I actually have not checked that, but if i change the order of my navigation (remove the splash and login screens), it is normaol
I really don't think this has anything to do with Stripe
StripeProvider just initializes the Stripe React Native SDK
There is no real reason it would mess with your navigation
can i not initialize it in the screen where i use stripe?
is it necessary to initialize it in app.js only?
You can initialize on the screen where you use Stripe if you want, though the recommendation is to just initialize top level so that Stripe is available throughout your App
oh okay. thank you!