Biometric KYC is exposed as a flow which performs the following high level steps:
Displays instructions to the user
Requests camera permissions (if not already granted)
Captures and saves Liveness and Selfie images
Submits the job to the Smile ID API
Delivers the result back to the caller
The screen is exposed as a React Native view which you can incorporate into your app as follows:
<SmileIDBiometricKYCView allowAgentMode:false,// true if you need to use the secondary camera showInstructions:true,// show instructions before capture captureBothSides:true,// true if capturing back and front of document allowGalleryUpload:false,//true if document can be uploaded from gallery idInfo: { country:'<country code>', idType:'<id type>', idNumber:'<id number>', entered:true, }, onResult={(event) => {setResult(event.nativeEvent.result); }}/>
On success, you will receive a JSON string following the structure: