@identomat-inc/react-native-identomat 1.1.11 → 1.1.13

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.
@@ -99,6 +99,6 @@ dependencies {
99
99
  //noinspection GradleDynamicVersion
100
100
  implementation "com.facebook.react:react-native:+"
101
101
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
102
- implementation 'com.identomat:identomat-sdk:1.1.122'
102
+ implementation 'com.identomat:identomat-sdk:1.1.124'
103
103
  }
104
104
 
@@ -28,10 +28,16 @@ class IdentomatModule(reactContext: ReactApplicationContext) :
28
28
  public fun setCallback(callback: Callback) {
29
29
  IdentomatManager.setCallback { finished(callback) }
30
30
  }
31
+
32
+ @ReactMethod
33
+ public fun setBackButtonCallback(callback: Callback) {
34
+ IdentomatManager.backButtonCallBack { finished(callback) }
35
+ }
31
36
  @ReactMethod
32
37
  private fun finished(callback: Callback) {
33
38
  callback.invoke()
34
39
  }
40
+
35
41
  @ReactMethod
36
42
  public fun setBaseUrl(baseUrl: String){
37
43
  IdentomatManager.setBaseUrl(baseUrl);
package/ios/Identomat.m CHANGED
@@ -25,6 +25,7 @@ RCT_EXTERN_METHOD(setColors: (NSString *)colors)
25
25
  RCT_EXTERN_METHOD(setStrings: (NSString *)strings)
26
26
  RCT_EXTERN_METHOD(setVariables: (NSString *)variables)
27
27
  RCT_EXTERN_METHOD(setCallback: (RCTResponseSenderBlock *)successCallback)
28
+ RCT_EXTERN_METHOD(setBackButtonCallback: (RCTResponseSenderBlock *)successCallback)
28
29
  @end
29
30
 
30
31
 
@@ -59,6 +59,13 @@ class Identomat: NSObject, RCTBridgeModule{
59
59
  self.successCallback!([NSNull(),"done"])
60
60
  }
61
61
  }
62
+ @objc
63
+ func setBackButtonCallback(_ successCallback: @escaping RCTResponseSenderBlock){
64
+ self.successCallback = successCallback;
65
+ IdentomatManager.getInstance().backButtonCallBack {
66
+ self.successCallback!([NSNull(),"done"])
67
+ }
68
+ }
62
69
  }
63
70
 
64
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@identomat-inc/react-native-identomat",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "identomat",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./src/index.tsx",
@@ -22,6 +22,6 @@ Pod::Spec.new do |s|
22
22
  s.swift_version = "5"
23
23
  s.requires_arc = true
24
24
  s.dependency "React"
25
- s.dependency "identomat-inc", "1.1.116"
25
+ s.dependency "identomat-inc", "1.1.120"
26
26
  end
27
27
 
package/src/index.tsx CHANGED
@@ -27,7 +27,10 @@ class Identomat {
27
27
  IdentomatNative.setCallback(Callback.callback);
28
28
  }
29
29
 
30
-
30
+ async setBackButtonCallback(Callback: IdentomatCallback){
31
+ IdentomatNative.setBackButtonCallback(Callback.callback);
32
+ }
33
+
31
34
  async start(sessionKey: string): Promise<void> {
32
35
  IdentomatNative.start(sessionKey);
33
36