To install the SDK run the below command in the terminal at the root of your project.
npm install rn-smile-id
Add the Smile ID config file to your app:
If you have not generated your smile id API key please click here to generate an API key (Skip if you have generated an API key before)
Click Download Configuration File to obtain your Smile ID config file (
For iOS open the ios project and place this file at the root of your project and for android place this file at the root of the main module (usually app folder) this step is critical and your project will behave unexpectedly if these are not done right.
What do you need to know about this config file?
The Smile ID config file contains unique, and secret identifiers for your project. Do not share this file with extenal parties
You can download your Smile ID config file again at any time.
Make sure the config file name is not appended with additional characters, like
Do not edit the contents of the config file
The SDK Exposes this methods
//Selfie CapturecaptureSelfie(tag: string): Promise<object>;//ID Card CapturecaptureIDCard(tag: string): Promise<object>;//Capture a Selfie and ID Card in one gocaptureSelfieAndIDCard(tag: string): Promise<object>;//Submit a jobsubmitJob(tag: string,jobType: number,isProduction: boolean,partnerParams: object,idInfo: object,geoInfo: object): Promise<object>;
A sample application is available on github in a public repo here,