We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description
When trying to create a local build with the included example, I get the following error related to these lines in the code:
Function("initConnection") { | ^ cannot infer return type for closure with multiple statements; add explicit type to disambiguate 116 | self.productStore = ProductStore() 117 | return AppStore.canMakePayments 118 | }
To Reproduce
Steps to reproduce the behavior:
example
yarn
npx expo run:ios
The text was updated successfully, but these errors were encountered:
facing same in bare react native project
Sorry, something went wrong.
@hyochan here Function("initConnection") { self.productStore = ProductStore() return AppStore.canMakePayments }
Function("initConnection") { self.productStore = ProductStore() return AppStore.canMakePayments }
Fixed @hyochan @jcohenho
Function("initConnection") { () -> Bool in self.productStore = ProductStore() return AppStore.canMakePayments }
Function("disable") {() -> Bool in self.removeTransactionObserver() return true }
diff --git a/node_modules/expo-iap/ios/ExpoIapModule.swift b/node_modules/expo-iap/ios/ExpoIapModule.swift index d429b5d..ef8689d 100644 --- a/node_modules/expo-iap/ios/ExpoIapModule.swift +++ b/node_modules/expo-iap/ios/ExpoIapModule.swift @@ -111,8 +111,7 @@ public class ExpoIapModule: Module { hasListeners = false self.removeTransactionObserver() } - - Function("initConnection") { + Function("initConnection") { () -> Bool in self.productStore = ProductStore() return AppStore.canMakePayments } @@ -433,7 +432,7 @@ public class ExpoIapModule: Module { #endif } - Function("disable") { + Function("disable") {() -> Bool in self.removeTransactionObserver() return true }
No branches or pull requests
Description
When trying to create a local build with the included example, I get the following error related to these lines in the code:
To Reproduce
Steps to reproduce the behavior:
example
folderyarn
npx expo run:ios
The text was updated successfully, but these errors were encountered: