From eb3afb238f0edfb6a9ec50e11829f1dd0de25c1a Mon Sep 17 00:00:00 2001 From: Andres Aguilar Date: Mon, 29 Aug 2022 17:30:04 -0700 Subject: [PATCH 1/2] Reverted some files to maintain backwards compatibility --- IapExample/src/screens/ClassSetup.tsx | 4 +- IapExample/src/screens/Products.tsx | 10 ++--- IapExample/src/screens/Subscriptions.tsx | 31 +++++++-------- ios/RNIapIos.swift | 35 +++++++++++++---- src/eventEmitter.ts | 33 +++++++++++++--- src/hooks/useIAP.ts | 17 ++++---- src/hooks/withIAPContext.tsx | 33 +++++++++++++++- src/iap.ts | 47 ++++++++++++++++++---- src/purchaseError.ts | 4 +- src/types/appleSK2.ts | 50 ++++++++++++++++++++++++ src/types/index.ts | 4 +- 11 files changed, 208 insertions(+), 60 deletions(-) create mode 100644 src/types/appleSK2.ts diff --git a/IapExample/src/screens/ClassSetup.tsx b/IapExample/src/screens/ClassSetup.tsx index e3b91e8ec..c917c3429 100644 --- a/IapExample/src/screens/ClassSetup.tsx +++ b/IapExample/src/screens/ClassSetup.tsx @@ -173,7 +173,7 @@ export class ClassSetup extends Component<{}, State> { {productList.map((product, index) => ( { >