react-native-kalapa-ekyc 1.1.2 → 1.2.0
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/README.md +534 -142
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/build.gradle +10 -8
- package/android/src/main/java/com/reactnativekalapaekyc/KalapaEkycModule.java +72 -60
- package/ios/KalapaEkyc.m +20 -9
- package/ios/KalapaEkyc.xcodeproj/project.xcworkspace/xcuserdata/iosdev.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/KalapaEkyc.xcodeproj/project.xcworkspace/xcuserdata/leo.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/package.json +11 -12
- package/react-native-kalapa-ekyc.podspec +1 -0
- package/src/KalapaResult.ts +326 -0
- package/src/index.tsx +4 -1
- package/lib/typescript/babel.config.d.ts +0 -1
- package/lib/typescript/lib/commonjs/index.d.ts +0 -3
- package/lib/typescript/lib/module/index.d.ts +0 -2
- package/lib/typescript/scripts/bootstrap.d.ts +0 -1
- /package/lib/typescript/{src/index.d.ts → index.d.ts} +0 -0
package/src/index.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NativeModules } from 'react-native';
|
|
2
|
+
import KalapaResult from './KalapaResult';
|
|
2
3
|
|
|
3
4
|
const { KalapaEkyc } = NativeModules;
|
|
4
5
|
|
|
@@ -23,7 +24,7 @@ interface KalapaResult {
|
|
|
23
24
|
// Parse the result
|
|
24
25
|
const parsedResult = JSON.parse(result.kalapa_result);
|
|
25
26
|
|
|
26
|
-
// Return enhanced result with
|
|
27
|
+
// Return enhanced result with parsed kalapa_result
|
|
27
28
|
return {
|
|
28
29
|
...result,
|
|
29
30
|
kalapa_result: parsedResult,
|
|
@@ -34,4 +35,6 @@ interface KalapaResult {
|
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
37
|
|
|
38
|
+
// Export both the main module and KalapaResult class
|
|
39
|
+
export { KalapaResult };
|
|
37
40
|
export default ExtendedKalapaEkyc;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const presets: string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|