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