react-native-hyperkyc-sdk 0.1.8-alpha1 → 0.2.0-alpha2

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.
Files changed (2) hide show
  1. package/README.md +26 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -11,11 +11,35 @@ npm install react-native-hyperkyc-sdk
11
11
  ## Usage
12
12
 
13
13
  ```js
14
- import { Hyperkyc } from "react-native-hyperkyc-sdk";
14
+ import { NativeModules } from 'react-native';
15
+ const { Hyperkyc } = NativeModules
15
16
 
16
17
  // ...
17
18
 
18
- Hyperkyc.launch(config)
19
+ var configDictionary = {};
20
+ configDictionary["appId"] = appID
21
+ configDictionary["appKey"] = appKey
22
+ configDictionary["defaultCountryId"] = "ind"
23
+
24
+ configDictionary["transactionId"] = transactionId
25
+ configDictionary["workflow"] = JSON.stringify([ {
26
+ type: "document",
27
+ countryId:"ind",
28
+ documentId:"pan",
29
+ useForFaceMatch: true
30
+ },
31
+ {
32
+ type: "document",
33
+ useForFaceMatch: true
34
+ },
35
+ {
36
+ type: "face"
37
+ }
38
+
39
+ ]);
40
+ Hyperkyc.launch(configDictionary, function(response){
41
+ console.log(response)
42
+ })
19
43
  ```
20
44
 
21
45
  ## Contributing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-hyperkyc-sdk",
3
- "version": "0.1.8-alpha1",
3
+ "version": "0.2.0-alpha2",
4
4
  "description": "React Native wrapper for HyperKYC SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",