Created
June 17, 2022 10:02
-
-
Save callstack-bot/3d89dbf6cde97bc1945ac69c7ae474ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { Text} from 'react-native'; | |
import Constants from 'expo-constants'; | |
import { | |
StripeProvider, | |
} from '@stripe/stripe-react-native'; | |
// find your publishable key at https://dashboard.stripe.com/test/apikeys | |
const STRIPE_PUBLBISHABLE_KEY = “pk_test_YOUR_KEY_HERE”; | |
export default function App() { | |
return ( | |
<StripeProvider publishableKey={STRIPE_PUBLBISHABLE_KEY}> | |
<Text>Card Payments</Text> | |
</StripeProvider> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment