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

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.124'
102
+ implementation 'com.identomat:identomat-sdk:1.1.125'
103
103
  }
104
104
 
@@ -15,7 +15,8 @@ class Identomat: NSObject, RCTBridgeModule{
15
15
  }
16
16
 
17
17
  var successCallback: RCTResponseSenderBlock? = nil;
18
-
18
+ var backButtonCallback: RCTResponseSenderBlock? = nil;
19
+
19
20
  @objc
20
21
  func start(_ sessionId : String) -> Void {
21
22
  DispatchQueue.main.async {
@@ -61,9 +62,9 @@ class Identomat: NSObject, RCTBridgeModule{
61
62
  }
62
63
  @objc
63
64
  func setBackButtonCallback(_ successCallback: @escaping RCTResponseSenderBlock){
64
- self.successCallback = successCallback;
65
+ self.backButtonCallback = successCallback;
65
66
  IdentomatManager.getInstance().backButtonCallBack {
66
- self.successCallback!([NSNull(),"done"])
67
+ self.backButtonCallback!([NSNull(),"done"])
67
68
  }
68
69
  }
69
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@identomat-inc/react-native-identomat",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
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.120"
25
+ s.dependency "identomat-inc", "1.1.121"
26
26
  end
27
27
 
package/src/index.tsx CHANGED
@@ -42,13 +42,13 @@ class Identomat {
42
42
  if (baseUrl) IdentomatNative.setBaseUrl(baseUrl);
43
43
 
44
44
  }
45
- async setColors(colors: String) {
45
+ async setColors(colors: Object) {
46
46
  IdentomatNative.setColors(JSON.stringify(colors));
47
47
 
48
48
  }
49
- async setVariables(variables: string) {
49
+ async setVariables(variables: Object) {
50
50
  IdentomatNative.setVariables(JSON.stringify(variables));
51
- }
51
+ }
52
52
 
53
53
 
54
54