Skip to content

Commit 1c7971b

Browse files
committed
fix(react-native): align iOS listener option types
1 parent bf27c46 commit 1c7971b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libraries/react-native-iap/ios/HybridRnIap.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ class HybridRnIap: HybridRnIapSpec {
960960

961961
func addPurchaseUpdatedListener(
962962
listener: @escaping (NitroPurchase) -> Void,
963-
options: NitroPurchaseUpdatedListenerOptions?
963+
options: PurchaseUpdatedListenerOptions?
964964
) throws -> Double {
965965
let dedupeTransactionIOS = purchaseUpdatedDedupeTransactionIOS(from: options)
966966
let receiveDuplicateTransactionUpdatesIOS = !dedupeTransactionIOS
@@ -1004,7 +1004,7 @@ class HybridRnIap: HybridRnIapSpec {
10041004
}
10051005

10061006
private func purchaseUpdatedDedupeTransactionIOS(
1007-
from options: NitroPurchaseUpdatedListenerOptions?
1007+
from options: PurchaseUpdatedListenerOptions?
10081008
) -> Bool {
10091009
guard let dedupeTransactionIOS = options?.dedupeTransactionIOS else {
10101010
return true
@@ -1153,7 +1153,7 @@ class HybridRnIap: HybridRnIapSpec {
11531153
return
11541154
}
11551155
RnIapLog.payload("purchaseUpdatedListener.register.duplicates", nil)
1156-
let options = PurchaseUpdatedListenerOptions(
1156+
let options = OpenIAP.PurchaseUpdatedListenerOptions(
11571157
dedupeTransactionIOS: false
11581158
)
11591159
purchaseUpdatedDuplicateSub = OpenIapModule.shared.purchaseUpdatedListener({ [weak self] openIapPurchase in

0 commit comments

Comments
 (0)