@finos_sdk/sdk-ekyc 0.0.18 → 0.0.19
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/dist/App.d.ts +1 -7
- package/dist/App.js +15 -71
- package/dist/EKYCModule.js +4 -4
- package/package.json +2 -2
package/dist/App.d.ts
CHANGED
package/dist/App.js
CHANGED
|
@@ -1,84 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Sample React Native App
|
|
4
|
-
* https://github.com/facebook/react-native
|
|
5
|
-
*
|
|
6
|
-
* @format
|
|
7
|
-
*/
|
|
8
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
4
|
};
|
|
11
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
6
|
const react_1 = __importDefault(require("react"));
|
|
13
7
|
const react_native_1 = require("react-native");
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
styles.sectionTitle,
|
|
20
|
-
{
|
|
21
|
-
color: isDarkMode ? NewAppScreen_1.Colors.white : NewAppScreen_1.Colors.black,
|
|
22
|
-
},
|
|
23
|
-
]}>
|
|
24
|
-
{title}
|
|
25
|
-
</react_native_1.Text>
|
|
26
|
-
<react_native_1.Text style={[
|
|
27
|
-
styles.sectionDescription,
|
|
28
|
-
{
|
|
29
|
-
color: isDarkMode ? NewAppScreen_1.Colors.light : NewAppScreen_1.Colors.dark,
|
|
30
|
-
},
|
|
31
|
-
]}>
|
|
32
|
-
{children}
|
|
33
|
-
</react_native_1.Text>
|
|
8
|
+
const TestNativeModules_1 = __importDefault(require("./TestNativeModules"));
|
|
9
|
+
const App = () => {
|
|
10
|
+
return (<react_native_1.View style={styles.container}>
|
|
11
|
+
<react_native_1.Text style={styles.title}>EKYC Module Test</react_native_1.Text>
|
|
12
|
+
<TestNativeModules_1.default />
|
|
34
13
|
</react_native_1.View>);
|
|
35
|
-
}
|
|
36
|
-
function App() {
|
|
37
|
-
const isDarkMode = (0, react_native_1.useColorScheme)() === 'dark';
|
|
38
|
-
const backgroundStyle = {
|
|
39
|
-
backgroundColor: isDarkMode ? NewAppScreen_1.Colors.darker : NewAppScreen_1.Colors.lighter,
|
|
40
|
-
};
|
|
41
|
-
return (<react_native_1.SafeAreaView style={backgroundStyle}>
|
|
42
|
-
<react_native_1.StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} backgroundColor={backgroundStyle.backgroundColor}/>
|
|
43
|
-
<react_native_1.ScrollView contentInsetAdjustmentBehavior="automatic" style={backgroundStyle}>
|
|
44
|
-
<NewAppScreen_1.Header />
|
|
45
|
-
<react_native_1.View style={{
|
|
46
|
-
backgroundColor: isDarkMode ? NewAppScreen_1.Colors.black : NewAppScreen_1.Colors.white,
|
|
47
|
-
}}>
|
|
48
|
-
<Section title="Step One">
|
|
49
|
-
Edit <react_native_1.Text style={styles.highlight}>App.tsx</react_native_1.Text> to change this
|
|
50
|
-
screen and then come back to see your edits.
|
|
51
|
-
</Section>
|
|
52
|
-
<Section title="See Your Changes">
|
|
53
|
-
<NewAppScreen_1.ReloadInstructions />
|
|
54
|
-
</Section>
|
|
55
|
-
<Section title="Debug">
|
|
56
|
-
<NewAppScreen_1.DebugInstructions />
|
|
57
|
-
</Section>
|
|
58
|
-
<Section title="Learn More">
|
|
59
|
-
Read the docs to discover what to do next:
|
|
60
|
-
</Section>
|
|
61
|
-
<NewAppScreen_1.LearnMoreLinks />
|
|
62
|
-
</react_native_1.View>
|
|
63
|
-
</react_native_1.ScrollView>
|
|
64
|
-
</react_native_1.SafeAreaView>);
|
|
65
|
-
}
|
|
14
|
+
};
|
|
66
15
|
const styles = react_native_1.StyleSheet.create({
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
sectionTitle: {
|
|
72
|
-
fontSize: 24,
|
|
73
|
-
fontWeight: '600',
|
|
74
|
-
},
|
|
75
|
-
sectionDescription: {
|
|
76
|
-
marginTop: 8,
|
|
77
|
-
fontSize: 18,
|
|
78
|
-
fontWeight: '400',
|
|
16
|
+
container: {
|
|
17
|
+
flex: 1,
|
|
18
|
+
backgroundColor: '#fff',
|
|
79
19
|
},
|
|
80
|
-
|
|
81
|
-
|
|
20
|
+
title: {
|
|
21
|
+
fontSize: 20,
|
|
22
|
+
fontWeight: 'bold',
|
|
23
|
+
textAlign: 'center',
|
|
24
|
+
padding: 20,
|
|
25
|
+
backgroundColor: '#f0f0f0',
|
|
82
26
|
},
|
|
83
27
|
});
|
|
84
28
|
exports.default = App;
|
package/dist/EKYCModule.js
CHANGED
|
@@ -15,12 +15,12 @@ if (!EKYCNativeModule) {
|
|
|
15
15
|
}
|
|
16
16
|
// Initialize the module
|
|
17
17
|
try {
|
|
18
|
-
EKYCNativeModule.initSdkEkyc()
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
EKYCNativeModule.initSdkEkyc()
|
|
19
|
+
.then(() => console.log("✅ EKYCModule.initSdkEkyc called successfully"))
|
|
20
|
+
.catch(e => console.warn("❌ Failed to initialize SDK EKYC:", e));
|
|
21
21
|
}
|
|
22
22
|
catch (e) {
|
|
23
|
-
console.warn(
|
|
23
|
+
console.warn("❌ Exception when calling initSdkEkyc:", e);
|
|
24
24
|
}
|
|
25
25
|
class SDKeKYC {
|
|
26
26
|
constructor() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos_sdk/sdk-ekyc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "SDK React Native EKYC",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"sdk"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
|
-
"android": "
|
|
26
|
+
"android": "react-native run-android",
|
|
27
27
|
"ios": "react-native run-ios",
|
|
28
28
|
"start": "react-native start --reset-cache",
|
|
29
29
|
"clean": "cd android && ./gradlew clean && cd ..",
|