react-native-face-match-sdk 1.0.3 → 1.0.4

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.
@@ -49,7 +49,7 @@ class FaceMatchModule(private val reactContext: ReactApplicationContext) :
49
49
 
50
50
  @ReactMethod
51
51
  fun pickImage(promise: Promise) {
52
- val activity = currentActivity
52
+ val activity = reactContext.currentActivity
53
53
  if (activity == null) {
54
54
  promise.reject("E_NO_ACTIVITY", "No foreground Activity is available")
55
55
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-face-match-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Offline on-device face liveness, anti-spoofing and face matching for React Native (Android and iOS).",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",