@expensify/react-native-wallet 0.1.31 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -111,13 +111,7 @@ class WalletModule internal constructor(context: ReactApplicationContext) :
|
|
|
111
111
|
@ReactMethod
|
|
112
112
|
override fun checkWalletAvailability(promise: Promise) {
|
|
113
113
|
tapAndPayClient.environment.addOnCompleteListener { task ->
|
|
114
|
-
|
|
115
|
-
promise.resolve(true)
|
|
116
|
-
} else {
|
|
117
|
-
promise.resolve(false)
|
|
118
|
-
}
|
|
119
|
-
}.addOnFailureListener { e ->
|
|
120
|
-
promise.reject(E_OPERATION_FAILED, "Checking Wallet availability failed: ${e.localizedMessage}")
|
|
114
|
+
promise.resolve(task.isSuccessful)
|
|
121
115
|
}
|
|
122
116
|
}
|
|
123
117
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expensify/react-native-wallet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.33",
|
|
4
4
|
"description": "A React Native module designed for seamless integration of Card Push Provisioning into Apple Wallet and Google Wallet, enabling easy and secure addition of payment cards directly from your application.",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "lib/commonjs/index",
|