From 8adb615e06019c4f4f2e659dcb60d13239db45d6 Mon Sep 17 00:00:00 2001 From: Charlie Cruzan Date: Fri, 26 Jan 2024 11:33:11 -1000 Subject: [PATCH] fix export --- example/src/screens/PaymentsUICompleteScreen.tsx | 2 ++ example/src/screens/WebhookPaymentScreen.tsx | 7 ++++++- src/types/index.ts | 8 ++------ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/example/src/screens/PaymentsUICompleteScreen.tsx b/example/src/screens/PaymentsUICompleteScreen.tsx index a402b4243..00956c149 100644 --- a/example/src/screens/PaymentsUICompleteScreen.tsx +++ b/example/src/screens/PaymentsUICompleteScreen.tsx @@ -8,6 +8,7 @@ import { PaymentSheetError, AddressSheet, AddressSheetError, + CardBrand, } from '@stripe/stripe-react-native'; import Button from '../components/Button'; import PaymentScreen from '../components/PaymentScreen'; @@ -111,6 +112,7 @@ export default function PaymentsUICompleteScreen() { appearance, primaryButtonLabel: 'purchase!', removeSavedPaymentMethodMessage: 'remove this payment method?', + preferredNetworks: [CardBrand.Amex, CardBrand.Visa], }); if (!error) { setPaymentSheetEnabled(true); diff --git a/example/src/screens/WebhookPaymentScreen.tsx b/example/src/screens/WebhookPaymentScreen.tsx index ac1d0353c..3efe1241e 100644 --- a/example/src/screens/WebhookPaymentScreen.tsx +++ b/example/src/screens/WebhookPaymentScreen.tsx @@ -4,7 +4,11 @@ import type { } from '@stripe/stripe-react-native'; import React, { useState } from 'react'; import { Alert, StyleSheet, Text, TextInput, View, Switch } from 'react-native'; -import { CardField, useConfirmPayment } from '@stripe/stripe-react-native'; +import { + CardBrand, + CardField, + useConfirmPayment, +} from '@stripe/stripe-react-native'; import Button from '../components/Button'; import PaymentScreen from '../components/PaymentScreen'; import { API_URL } from '../Config'; @@ -108,6 +112,7 @@ export default function WebhookPaymentScreen() { }} cardStyle={inputStyles} style={styles.cardField} + preferredNetworks={[CardBrand.Amex]} />