-
Notifications
You must be signed in to change notification settings - Fork 289
Open
Description
Describe the bug
When trying to import and use the StripeProvider from the @stripe/stripe-react-native package, the app crashes with the error:
Cannot read property 'StripeProvider' of undefined.
This suggests that the package is either not linked correctly or not properly initialized.
To Reproduce
Steps to reproduce the behavior:
- Create a new React Native project (e.g., using npx react-native init).
- Install @stripe/stripe-react-native.
- Import StripeProvider from @stripe/stripe-react-native.
- Use component in your app.
- Run the app.
- See the error in the console or app crash.
Expected behavior
The component should be properly imported and usable without causing runtime errors.
Desktop (please complete the following information):
- OS: [macos sequoia 15.5]
- Node version: [20.15.0]
- React Native version: [0.80.1]
- Stripe React Native version: [^0.49.0]
Smartphone (please complete the following information):
- Device: [Emulators and real devices]
- OS: [Android]
Additional context
- The package is installed via npm.
- Tried cleaning build cache, reinstalling node_modules, and rebuilding the app.
- The error occurs immediately upon rendering the component.
Metadata
Metadata
Assignees
Labels
No labels