@kycaid/react-native-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

KYCAID React Native SDK

A React Native component that allows you to quickly integrate the KYCAID service to identify your customer (KYC/KYB).

Example of usage KYCAID component

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.

Documentation

Additional API reference

Package Sidebar

Install

npm i @kycaid/react-native-sdk

Weekly Downloads

8

Version

1.0.8

License

MIT

Unpacked Size

57.6 kB

Total Files

84

Last publish

Collaborators

  • kycaid_admin
  • kycaid_publisher