Skip to content

Instantly share code, notes, and snippets.

@callstack-bot
Created June 17, 2022 10:02
Show Gist options
  • Save callstack-bot/3d89dbf6cde97bc1945ac69c7ae474ce to your computer and use it in GitHub Desktop.
Save callstack-bot/3d89dbf6cde97bc1945ac69c7ae474ce to your computer and use it in GitHub Desktop.
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