react-native-purchases-ui
Version:
React Native in-app purchases and subscriptions made easy. Supports iOS and Android.
28 lines • 1.12 kB
TypeScript
import React from 'react';
import { type CustomerInfo, type PurchasesError, type PurchasesOffering, type PurchasesPackage, type PurchasesStoreTransaction } from "@revenuecat/purchases-typescript-internal";
export interface PreviewPaywallProps {
offering?: PurchasesOffering | null;
displayCloseButton?: boolean;
fontFamily?: string | null;
onPurchaseStarted?: ({ packageBeingPurchased }: {
packageBeingPurchased: PurchasesPackage;
}) => void;
onPurchaseCompleted?: ({ customerInfo, storeTransaction }: {
customerInfo: CustomerInfo;
storeTransaction: PurchasesStoreTransaction;
}) => void;
onPurchaseError?: ({ error }: {
error: PurchasesError;
}) => void;
onPurchaseCancelled?: () => void;
onRestoreStarted?: () => void;
onRestoreCompleted?: ({ customerInfo }: {
customerInfo: CustomerInfo;
}) => void;
onRestoreError?: ({ error }: {
error: PurchasesError;
}) => void;
onDismiss?: () => void;
}
export declare const PreviewPaywall: React.FC<PreviewPaywallProps>;
//# sourceMappingURL=previewComponents.d.ts.map