npm i --save @nstudio/nativescript-onfido
- Version: 4.0.0
- GitHub: https://github.com/nstudio/nativescript-plugins
- NPM: https://www.npmjs.com/package/%40nstudio%2Fnativescript-onfido
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
Onfido SDK for NativeScript
npm install @nstudio/nativescript-onfido
Usage
import { OnfidoUtils, Onfido, OnfidoCaptureType } from '@nstudio/nativescript-onfido';
OnfidoUtils.init('<token>', '<app id>');
Onfido.debugMode = true;
Onfido.start({
sdkToken: token,
flowSteps: {
welcome: true,
captureDocument: {},
captureFace: {
type: OnfidoCaptureType.PHOTO,
},
},
}).then(data => {
// onfido data
}).catch((error) => {
// onfido data
});
License
Apache License Version 2.0