1.0.8 • Published 2 years ago

@kycaid/react-native-sdk v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago