We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the following for web and native support
// app/stripe/stripe.tsx import { Platform } from 'react-native'; export const { StripeProvider, useStripe, initStripe } = Platform.select({ web: () => require('./stripe.web'), native: () => require('./stripe.native'), default: () => require('./stripe.native'), })();
When including
// app/stripe/stripe.native.tsx import * as Stripe from '@stripe/stripe-react-native'; export { useStripe, initStripe } from '@stripe/stripe-react-native'; export const StripeProvider: React.FC<{ publishableKey: string; children: JSX.Element | JSX.Element[]; }> = ({ publishableKey, children }) => { return <Stripe.StripeProvider publishableKey={publishableKey}>{children}</Stripe.StripeProvider>; };
It breaks.
Commenting this out works, so including from '@stripe/stripe-react-native' breaks something.
'@stripe/stripe-react-native'
I tried many ways to fix this, with no luck.
Anyone know how I can ignore @stripe/stripe-react-native on web builds?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have the following for web and native support
When including
It breaks.
Commenting this out works, so including from
'@stripe/stripe-react-native'
breaks something.I tried many ways to fix this, with no luck.
Anyone know how I can ignore @stripe/stripe-react-native on web builds?
The text was updated successfully, but these errors were encountered: