@velocitycareerlabs/vcl-react-native 1.15.0 → 1.15.2
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 +48 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,30 +2,62 @@
|
|
|
2
2
|
|
|
3
3
|
Velocity Career Labs React Native SDK
|
|
4
4
|
|
|
5
|
-
## Installation
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
npm install @velocitycareerlabs/vcl-react-native
|
|
9
|
-
```
|
|
6
|
+
Android:
|
|
10
7
|
|
|
11
|
-
|
|
8
|
+
kotlin version: 1.7.21
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
import { multiply } from '@velocitycareerlabs/vcl-react-native';
|
|
10
|
+
minSdkVersion 24
|
|
15
11
|
|
|
16
|
-
|
|
12
|
+
targetSdkVersion 33
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
iOS:
|
|
16
|
+
|
|
17
|
+
swift version: 5
|
|
18
|
+
|
|
19
|
+
deployment target: 13
|
|
17
20
|
|
|
18
|
-
const result = await multiply(3, 7);
|
|
19
|
-
```
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
React Native:
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
react version 18.2.0
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
react native version 0.72.4
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
# React Native SDK
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
The React Native SDK is a wrapper of iOS and Android SDKs.
|
|
31
|
+
The minimum supported Android API is 21.
|
|
32
|
+
The iOS target deployment API is 12.0.
|
|
30
33
|
|
|
31
|
-
|
|
34
|
+
## Installation
|
|
35
|
+
- Add the path to the Velocity specs to the head of the Pod file in the iOS folder
|
|
36
|
+
`source 'https://github.com/velocitycareerlabs/Specs.git'`
|
|
37
|
+
- SDK installation:
|
|
38
|
+
```js
|
|
39
|
+
yarn add @velocitycareerlabs/vcl-react-native --save
|
|
40
|
+
```
|
|
41
|
+
or
|
|
42
|
+
```js
|
|
43
|
+
npm install @velocitycareerlabs/vcl-react-native --save
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Usage
|
|
47
|
+
To start using the VCL SDK, you’ll need to create its object and initialize it in Velocity Network™:
|
|
48
|
+
```js
|
|
49
|
+
import vcl from '@velocitycareerlabs/vcl-react-native';
|
|
50
|
+
```
|
|
51
|
+
```js
|
|
52
|
+
const initializationDescriptor: VCLInitializationDescriptor = {
|
|
53
|
+
environment: environment,
|
|
54
|
+
};
|
|
55
|
+
vcl.initialize(initializationDescriptor).then(
|
|
56
|
+
() => {
|
|
57
|
+
// Do your magic
|
|
58
|
+
},
|
|
59
|
+
(err: VCLError) => {
|
|
60
|
+
// Handle initialization failure
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
```
|