You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thorsten-stripe
changed the title
NativeStripeSdk in StripeProvider.tsx is undefined using initStripe
[Expo] NativeStripeSdk in StripeProvider.tsx is undefined using initStripe
May 20, 2021
We're working with the Expo team to make this smoother, you can follow along here: #3
Hi @thorsten-stripe! I'm running the project as a "managed workflow". Like you said the expo support does still seem quite limited. I'll maybe try my chances to eject the project to a bare workflow instead. Generally I'd like to avoid it since there would be no other reason than getting compatibility with this project. I have already been playing around with options to see if it's caused by babel or anything similar configurable.
Describe the bug
Using the preceding code to initialize stripe in a componentDidMount in an expo project causes a:
TypeError: Cannot read property 'initialise' of undefined (StripeProvider.tsx:42)
error.To Reproduce
Expected behavior
NativeStripeSdk to be compiled and working in the package import.
Desktop (please complete the following information):
Smartphone (please complete the following information):
stripe-react-native version:
0.1.1
The text was updated successfully, but these errors were encountered: