This package is a wrapper for the Onfido Library. https://onfido.com/
yarn add react-native-onfido
.
To start the onfido KYC proccess use startSDK
Onfido.startSDK(token, applicantId, country, onSuccess, OnError);
React native example
import Onfido from 'react-native-onfido';
Onfido.startSDK(
token,
applicantId,
country,
() => {
console.log("Verification complete");
},
(errorCause) => {
if (errorCause == "USER_LEFT_ACTIVITY") {
console.log("Flow cancelled")
} else {
console.log("Flow not finished")
};
});
Please read through our CODE_OF_CONDUCT.md.
Please read through our CONTRIBUTING.md.
Author: React-Native-Nation
Demo: https://onfido.com/
Source Code: https://github.com/React-Native-Nation/react-native-onfido
#react-native #react #mobile-apps