open-index/open-npm huggingface dataset:
npm package: @kycaid/react-native-sdk
Description: KYCAID React Native SDK
Author: kycaid
Latest version: 1.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).

![Example of usage KYCAID component](./example/screenshot.png "Screenshot")

## Installation   

```bash
$ npm install @kyciad/react-native-sdk
```
   
## Usage
    
```jsx
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](https://www.npmjs.com/package/react-native-create-lib)
npm package: @kycarr/cmi5
Description: Communicate over the xAPI cmi5 profile using JavaScript.
Author: Christian Cook
Latest version: 1.1.6

This is a fork of the xAPI.js - cmi5 Profile Library.

The difference is in this version you can pass launch parameters directly into the CMI5 constructor, instead of needing them in the window's url query parameters. 

<!-- prettier-ignore -->
[![npm version](https://img.shields.io/npm/v/@xapi/cmi5.svg)](https://www.npmjs.com/package/@xapi/cmi5) [![dependencies](https://david-dm.org/xapijs/cmi5.svg)](https://david-dm.org/xapijs/cmi5) [![Test](https://github.com/xapijs/cmi5/workflows/Test/badge.svg)](https://github.com/xapijs/cmi5/actions/workflows/test.yaml)

[<img width="100" src="https://avatars3.githubusercontent.com/u/65084607?s=200&v=4" alt="xAPI.js logo">](https://www.xapijs.dev)

# xAPI.js - cmi5 Profile Library

The **cmi5 Profile Library** is a strongly typed JavaScript library for enabling learning content to speak to learning systems. It is a complete implementation and fully compliant against the [cmi5 Specification](https://github.com/AICC/CMI-5_Spec_Current) (Quartz, 1st Edition).

- [API Documentation](https://www.xapijs.dev/cmi5-profile-library/cmi5-class)
- [Getting Started](https://www.xapijs.dev/cmi5-profile-library/getting-started)
- [Demo](https://github.com/xapijs/cmi5-demo)