#vatsa

1 messages · Page 1 of 1 (latest)

craggy mortarBOT
icy rover
#

Hi there

#

How can I help?

vivid pawn
#

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

icy rover
#

Hmmm StripeProvider shouldn't have any effect on screen navigation

#

Do you see an error when you try to navigate?

vivid pawn
vivid pawn
#

dont*

#

i just get a blank screen, with the styles of the file (styles.root)

icy rover
#

Are you attempting to render any Stripe components on that screen?

vivid pawn
#

No

icy rover
#

But it works fine when you remove StripeProvider?

vivid pawn
#

I actually have not checked that, but if i change the order of my navigation (remove the splash and login screens), it is normaol

icy rover
#

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

vivid pawn
#

can i not initialize it in the screen where i use stripe?

#

is it necessary to initialize it in app.js only?

icy rover
#

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

vivid pawn
#

oh okay. thank you!