Awesome
<div align="center"> </div>React Native Nation Onfido
This package is a wrapper for the Onfido Library. https://onfido.com/
Table of contents
<a name="howtoinstall"></a>
How to install
yarn add react-native-onfido
.
<a name="using"></a>
API Methods
startSDK
To start the onfido KYC proccess use startSDK
Onfido.startSDK(token, applicantId, country, onSuccess, OnError);
Example
<a name="example"></a>
Example
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")
};
},
// Optional iOS primary color
primaryColor);
<a name="community"></a>
Community profile
Please read through our CODE_OF_CONDUCT.md.
<a name="contributing"></a>
Contributing
Please read through our CONTRIBUTING.md.
Contributors
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore --> <table> <tr> <td align="center"><a href="https://jamesjara.me"><img src="https://avatars2.githubusercontent.com/u/780219?v=4" width="100px;" alt="James Jara"/><br /><sub><b>James Jara</b></sub></a><br /><a href="#infra-jamesjara" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/React-Native-Nation/react-native-onfido/commits?author=jamesjara" title="Code">💻</a> <a href="https://github.com/React-Native-Nation/react-native-onfido/commits?author=jamesjara" title="Tests">⚠️</a> <a href="https://github.com/React-Native-Nation/react-native-onfido/commits?author=jamesjara" title="Documentation">📖</a></td> </tr> </table><a name="reactnativenation"></a>
React Native Nation
React Native Nation is the best spanish website for react native documentation. react-native-nation.