1.0.8 • Published 2 years ago
@kycaid/react-native-sdk v1.0.8
KYCAID React Native SDK
A React Native component that allows you to quickly integrate the KYCAID service to identify your customer (KYC/KYB).
Installation
$ npm install @kyciad/react-native-sdk
Usage
import React from 'react';
import { SafeAreaView } from 'react-native';
import { KYCAID } from '@kycaid/react-native-sdk';
function App() {
const handleVerificationCallback = (data) => {
console.log(`Callback successfully received!`);
console.log(`Verification ${data?.verification_id} has status: ${data?.status}`);
};
return (
<SafeAreaView>
<KYCAID
config={{
api_url: '<api_url>',
api_token: '<api_token>',
applicant_id: '<applicant_id>',
form_id: '<form_id>'
}}
verificationCallback={handleVerificationCallback}
/>
</SafeAreaView>
)
}
Reference
Props
api_url
string (2048)
API endpoint URL.
api_token
(Required)
string (36)
API authorization token (can be taken in customer dashboard).
applicant_id
string (36)
The applicant’s unique identificator.
form_id
(Required)
string (36)
The form unique identificator (can be taken in customer dashboard).
verificationCallback
function
The callback which triggered when the form was completed by the applicant.