0.1.1 • Published 1 year ago

@blusalt-sdk/react-native-blusalt-document-verification v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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,
  startSDKWithCustomSelector,
  DocumentType
} from '@blusalt-sdk/react-native-blusalt-document-verification';

// ...
const clientId = "";
const appName = "";
const apiKey = "";
const isDev: boolean = false;
const idNumber = "1212121212";

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

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

startUsingCustomSelector = () => {
  startSDKWithCustomSelector(clientId, appName, apiKey, isDev, [DocumentType.nin, DocumentType.driverLicense], (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

0.1.1

1 year ago

0.1.0

2 years ago