Skip to content

Commit

Permalink
fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
charliecruzan-stripe committed Jan 26, 2024
1 parent 26730ad commit 8adb615
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions example/src/screens/PaymentsUICompleteScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
PaymentSheetError,
AddressSheet,
AddressSheetError,
CardBrand,
} from '@stripe/stripe-react-native';
import Button from '../components/Button';
import PaymentScreen from '../components/PaymentScreen';
Expand Down Expand Up @@ -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);
Expand Down
7 changes: 6 additions & 1 deletion example/src/screens/WebhookPaymentScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -108,6 +112,7 @@ export default function WebhookPaymentScreen() {
}}
cardStyle={inputStyles}
style={styles.cardField}
preferredNetworks={[CardBrand.Amex]}
/>
<View style={styles.row}>
<Switch
Expand Down
8 changes: 2 additions & 6 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ export {
export * from './PushProvisioning';
export * from './Errors';
export * from './CustomerSheet';
export type {
Address,
BillingDetails,
AddressDetails,
CardBrand,
} from './Common';
export type { Address, BillingDetails, AddressDetails } from './Common';
export { CardBrand } from './Common';

/**
* @ignore
Expand Down

0 comments on commit 8adb615

Please sign in to comment.