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

0.1.0 • Public • Published

react-native-blusalt-document-verification

Document Verification SDK for Android and IOS

Installation

npm install react-native-blusalt-document-verification

Android Setup

#Create a github.properties file in the root folder of android. Path should be like below: E.g. "myReactApp/android/github.properties"

# Add the following in github.properties:
USERNAME_GITHUB=MyUsernameOnGithub
TOKEN_GITHUB=TokenFromGithubClassicToken

Usage

import { startSDK, startSDKWithIdNumber, DocumentType } from 'react-native-blusalt-document-verification';

// ...

const clientId="";
const appName="";
const apiKey="";
const isDev: boolean = false;

  startSDK(clientId, appName, apiKey, isDev, DocumentType.selector, (responseJson)=>{
            console.log(responseJson);
    });


  const idNumber ="1212121212";
    startSDKWithIdNumber(clientId, appName, apiKey, isDev, DocumentType.bvn, idNumber, (responseJson)=>{
            console.log(responseJson);
    });

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i @blusalt-sdk/react-native-blusalt-document-verification

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

49.2 kB

Total Files

20

Last publish

Collaborators

  • folarinblusalt
  • oluwaseyiblusalt
  • blusalt-fs