react-native-hyperkyc-sdk 0.3.4-alpha02 → 0.3.6

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ #0.3.5 [28 July 2022]
2
+ 1.Added support to set custom inputs
package/README.md CHANGED
@@ -19,7 +19,13 @@ const { Hyperkyc } = NativeModules
19
19
  var configDictionary = {};
20
20
  configDictionary["appId"] = appID
21
21
  configDictionary["appKey"] = appKey
22
-
22
+
23
+ var inputsDictionary = {};
24
+ inputsDictionary["bvnNumber"] = "number-123"
25
+ inputsDictionary["image"] = "image-path"
26
+
27
+
28
+ configDictionary["inputs"] = inputsDictionary
23
29
 
24
30
  configDictionary["transactionId"] = transactionId
25
31
  configDictionary["workflowId"] = "<workflow-id>"
@@ -16,6 +16,7 @@ import com.facebook.react.bridge.ReactMethod;
16
16
  import com.facebook.react.bridge.Callback;
17
17
  import com.facebook.react.bridge.ReadableArray;
18
18
  import com.facebook.react.bridge.ReadableMap;
19
+ import com.facebook.react.bridge.ReadableMapKeySetIterator;
19
20
  import com.facebook.react.bridge.WritableMap;
20
21
  import com.facebook.react.bridge.WritableNativeMap;
21
22
  import com.google.gson.Gson;
@@ -152,7 +153,6 @@ public class HyperkycSdkModule extends ReactContextBaseJavaModule implements Act
152
153
  while(iterator.hasNextKey()){
153
154
  String key = iterator.nextKey();
154
155
  String value = inputs.getString(key);
155
- Log.e("TAG", key + "---" + value);
156
156
  inputsMap.put(key, value);
157
157
  }
158
158
 
@@ -34,7 +34,6 @@ class Hyperkyc: NSObject {
34
34
  if(appKey != nil && appId != nil){
35
35
  let hyperKYCConfig = HyperKycConfig(appId: appId!, appKey: appKey!, workflowId: workflowId!, transactionId: transactionId!)
36
36
  if let inputs = inputs{
37
- print(inputs)
38
37
  hyperKYCConfig.setInputs(inputs: inputs)
39
38
  }
40
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-hyperkyc-sdk",
3
- "version": "0.3.4-alpha02",
3
+ "version": "0.3.6",
4
4
  "description": "React Native wrapper for HyperKYC SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",