Skip to main content

UseIAPOptions

react-native-iap / Exports / UseIAPOptions

Interface: UseIAPOptions

Table of contents

Properties

Properties

onPurchaseError

Optional onPurchaseError: (error: PurchaseError) => void

Type declaration

▸ (error): void

Parameters
NameType
errorPurchaseError
Returns

void

Defined in

hooks/useIAP.ts:21


onPurchaseSuccess

Optional onPurchaseSuccess: (purchase: Purchase) => void

Type declaration

▸ (purchase): void

Parameters
NameType
purchasePurchase
Returns

void

Defined in

hooks/useIAP.ts:20


onSyncError

Optional onSyncError: (error: Error) => void

Type declaration

▸ (error): void

Parameters
NameType
errorError
Returns

void

Defined in

hooks/useIAP.ts:22


shouldAutoSyncPurchases

Optional shouldAutoSyncPurchases: boolean

Defined in

hooks/useIAP.ts:23