@velocitycareerlabs/vcl-react-native
v2.6.8
Published
Velocity Career Labs React Native SDK
Downloads
924
Maintainers
Readme
@velocitycareerlabs/vcl-react-native
Velocity Career Labs React Native SDK
Android:
kotlin version: 1.9.24
minSdkVersion: 24
compileSdkVersion: 34
targetSdkVersion: 34
iOS:
swift version: 5
deployment target: 13
React Native:
react version 18.2.0
react native version 0.73.6
React Native SDK
The React Native SDK is a wrapper of iOS and Android SDKs. The minimum supported Android API is 24. The iOS target deployment API is 13.0.
Installation
- Add the path to the Velocity specs to the head of the Pod file in the iOS folder
source 'https://github.com/velocitycareerlabs/Specs.git'
- SDK installation:
yarn add @velocitycareerlabs/vcl-react-native
or
npm install @velocitycareerlabs/vcl-react-native --save
Usage
To start using the VCL SDK, you’ll need to create its object and initialize it in Velocity Network™:
import vcl from '@velocitycareerlabs/vcl-react-native';
const initializationDescriptor: VCLInitializationDescriptor = {
environment: environment,
};
vcl.initialize(initializationDescriptor).then(
() => {
// Do your magic
},
(err: VCLError) => {
// Handle initialization failure
}
);
More details can be found HERE