@breeztech/breez-sdk-spark-react-native 0.22.0 → 0.22.2

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.
@@ -78,7 +78,7 @@ class BreezSdkSparkPasskeyModule(
78
78
  preferImmediatelyAvailableCredentials: Boolean?,
79
79
  promise: Promise,
80
80
  ) {
81
- val activity = currentActivity
81
+ val activity = reactContext.currentActivity
82
82
  if (activity == null) {
83
83
  promise.reject("ERR_NO_ACTIVITY", "No current activity available")
84
84
  return
@@ -147,7 +147,7 @@ class BreezSdkSparkPasskeyModule(
147
147
  */
148
148
  @ReactMethod
149
149
  fun checkDomainAssociation(rpId: String, promise: Promise) {
150
- val activity = currentActivity
150
+ val activity = reactContext.currentActivity
151
151
  if (activity == null) {
152
152
  promise.reject("ERR_NO_ACTIVITY", "No current activity available")
153
153
  return
@@ -203,7 +203,7 @@ class BreezSdkSparkPasskeyModule(
203
203
  registerSaltsArg: com.facebook.react.bridge.ReadableArray,
204
204
  promise: Promise,
205
205
  ) {
206
- val activity = currentActivity
206
+ val activity = reactContext.currentActivity
207
207
  if (activity == null) {
208
208
  promise.reject("ERR_NO_ACTIVITY", "No current activity available")
209
209
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark-react-native",
3
- "version": "0.22.0",
3
+ "version": "0.22.2",
4
4
  "description": "React Native bindings for the Breez SDK - Nodeless (Spark Implementation)",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -211,7 +211,7 @@
211
211
  "version": "0.49.0"
212
212
  },
213
213
  "checksums": {
214
- "android": "393795e396697b073764fe6d07058b63bef70ef247172bc785d2f2b1cb1067ce",
215
- "ios": "9e596dd9f135e79adc52102f1fdd45cff5b7818eba865918525562156a71d47b"
214
+ "android": "17caec5462d400fcd1e6fb22b303a67fd5e6a1e43cafab53c1d045abb26eab0d",
215
+ "ios": "f8f61a9d730fe499c850e94c6f22189f5ec5fbc09679817905603579b62ce5b1"
216
216
  }
217
217
  }