React Native SDK
Welcome to the Identomat React Native SDK documentation! Here, you'll find everything you need to integrate our ID verification and KYC/AML solutions into your React Native application seamlessly.
Latest release: Version 1.1.14
Getting started
$ npm install '@identomat-inc/react-native-identomat'
For iOS:
Run pod-install
in you iOS directory.
For Android:
Insert the following lines inside the dependencies block in android/build.gradle
:
allprojects {
repositories {
google ()
jcenter ()
maven {
url = uri("https://gitlab.identomat.com/api/v4/projects/674/packages/maven/")
}
}
}
...
Usage
import identomat from '@identomat-inc/react-native-identomat';
class Callback {
callback() {
console.log('finished')
}
}
identomat.setCallback(new Callback())
identomat.setBaseUrl(config.baseUrl);
identomat.setColors(config.colors);
identomat.setStrings(config.strings);
identomat.start(config.sessionKey);
Config
module.exports = {
sessionKey : '',
baseUrl : 'https://widget.identomat.com/api/',
colors: {
"background_low":"#222222",
"background_high":"#2D2D2D",
"text_color_title":"#A4A4A4",
"text_color_header":"#A4A4A4",
"text_color":"#676767",
"primary_button":"#7848FF",
"primary_button_text":"#FFFFFF",
"secondary_button":"#222222",
"secondary_button_text":"#FFFFFF",
"document_outer":"#2D2D2D",
"loading_indicator_background":"#FFFFFF",
"iteration_text":"#FFFFFF",
},
variables:{
"liveness_retry_icon_size": 200,
"scan_retry_icon_size": 200,
"camera_deny_icon_size": 200,
"upload_retry_icon_size": 200,
"title_font_size":20,
"head1_font_size":20,
"head2_font_size":16,
"body_font_size":11
},
strings:{
"en":{
"identomat_agree": "Agree",
"identomat_title": " ",
"identomat_agree_page_title": "Consent for personal data processing",
"identomat_capture_method_title": "Choose a method",
"identomat_card_front_instructions": "Scan FRONT SIDE of ID CARD",
"identomat_card_front_upload": "Upload FRONT SIDE of ID CARD",
"identomat_card_looks_fine": "Card looks fine",
"identomat_card_rear_instructions": "Scan BACK SIDE of ID CARD",
"identomat_card_rear_upload": "Upload BACK SIDE of ID CARD",
"identomat_choose_file": "Choose a file",
"identomat_continue": "Continue",
"identomat_disagree": "Disagree",
"identomat_driver_license": "Driver license",
"identomat_driver_license_front_instructions": "Scan FRONT SIDE of DRIVER LICENSE",
"identomat_driver_license_front_upload": "Upload FRONT SIDE of DRIVER LICENSE",
"identomat_driver_license_rear_instructions": "Scan BACK SIDE of DRIVER LICENSE",
"identomat_driver_license_rear_upload": "Upload BACK SIDE of DRIVER LICENSE",
"identomat_ukr_driver_license": "Ukrainian Driver license",
"identomat_ukr_driver_license_front_instructions": "Scan FRONT SIDE of DRIVER LICENSE",
"identomat_ukr_driver_license_front_upload": "Upload FRONT SIDE of DRIVER LICENSE",
"identomat_ukr_driver_license_rear_instructions": "Scan BACK SIDE of DRIVER LICENSE",
"identomat_ukr_driver_license_rear_upload": "Upload BACK SIDE of DRIVER LICENSE",
"identomat_face_instructions": "Place your FACE within OVAL",
"identomat_face_looks_fine": "Face looks fine",
"identomat_card": "ID card",
"identomat_im_ready": "I'm ready",
"identomat_initializing": "Initializing...",
"identomat_lets_try": "Let's try",
"identomat_passport": "Passport",
"identomat_passport_instructions": "Passport photo page",
"identomat_passport_upload": "Upload passport photo page",
"identomat_ukr_passport": "Ukrainian passport",
"identomat_record_begin_section_1": "Take a neutral expression",
"identomat_record_begin_section_2": "Smile on this sign",
"identomat_record_begin_section_3": "Take a neutral expression again",
"identomat_record_begin_title": "Get ready for your video selfie",
"identomat_record_fail_description": "But first, please take a look at the instructions",
"identomat_record_fail_title": "Let's try again",
"identomat_record_instructions": "Place your FACE within OVAL and follow the on-screen instructions",
"identomat_residence_permit": "Residence permit",
"identomat_residence_permit_front_instructions": "Scan FRONT SIDE of RESIDENCE PERMIT",
"identomat_residence_permit_front_upload": "Upload FRONT SIDE of RESIDENCE PERMIT",
"identomat_residence_permit_rear_instructions": "Scan BACK SIDE of RESIDENCE PERMIT",
"identomat_residence_permit_rear_upload": "Upload BACK SIDE of RESIDENCE PERMIT",
"identomat_inn": "Inn photo page",
"identomat_scan_inn": "Scan INN Document",
"identomat_retake_photo": "Retake photo",
"identomat_retry": "Retry",
"identomat_scan_code": "Scan the code",
"identomat_scan_me": "Scan me",
"identomat_select_document": "Select document",
"identomat_neutral_expression": "Neutral face",
"identomat_smile": "Smile",
"identomat_take_photo": "Take a photo",
"identomat_upload_another_file": "Upload another file",
"identomat_upload_file": "Upload a file",
"identomat_uploading": "Uploading...",
"identomat_verifying": "Verifying...",
"identomat_upload_instructions_1": "Upload a color image of the entire document",
"identomat_upload_instructions_2": "JPG or PNG format only",
"identomat_upload_instructions_3": "Screenshots are not allowed",
"identomat_document_align": "Frame your document",
"identomat_document_blurry": "Document is blurry",
"identomat_document_face_blurry": "Face on document is blurry",
"identomat_document_face_require_brighter": "Low light",
"identomat_document_face_too_bright": "Avoid direct light",
"identomat_document_move_away": "Please move document away",
"identomat_document_move_closer": "Please move document closer",
"identomat_document_move_down": "Please move document down",
"identomat_document_move_left": "Please move document to the left",
"identomat_document_move_right": "Please move document to the right",
"identomat_document_move_up": "Please move document up",
"identomat_document_type_unknown": "Unknown document type",
"identomat_document_covered": "Document is covered",
"identomat_document_grayscale": "Document is grayscale",
"identomat_document_format_mismatch": "Document format mismatch",
"identomat_document_type_mismatch": "Wrong document",
"identomat_document_not_readable": "Document not readable",
"identomat_document_face_align": "Document face align",
"identomat_document_spoofing_detected2": "Document spoofing detected",
"identomat_document_page_mismatch": "Wrong page",
"identomat_face_look_straight": "Look straight",
"identomat_face_mismatch": "Faces do not match",
"identomat_face_align": "Frame your face",
"identomat_face_away_from_center": "Center your Face",
"identomat_face_blurry": "Face is blurry",
"identomat_face_far_away": "Move closer",
"identomat_face_require_brighter": "Low light",
"identomat_face_too_bright": "Avoid direct light",
"identomat_face_too_close": "Move away",
"identomat_no_document_in_image": "Frame your document",
"identomat_smile_detected": "Get neutral face",
"identomat_upload_success": "Successfully uploaded!",
"identomat_scan_success": "Success!",
"identomat_scan_success_info": "Document scanned successfully, Change it to the other side.",
"identomat_liveness_success": "Liveness completed successfully",
"identomat_camera_permission_title": "Can't access the camera",
"identomat_camera_permission_text": "Permission on the camera is restricted, without the camera, the app can't progress forward, please go to settings and check camera permission.",
"identomat_audio_permission_title": "Can't access the microphone",
"identomat_audio_permission_text": "Permission on the microphone is restricted, without the microphone, a call can't be made, please go to settings and check audio permission.",
"identomat_no_connection": "No internet connection",
"identomat_scan_retry_title": "Capture failed",
"identomat_scan_retry_instruction": "Please try again in better lighting",
"identomat_scan_retry_again": "Try again",
"identomat_scan_retry_cancel": "Cancel process",
"identomat_liveness_retry_title": "Let's try again",
"identomat_liveness_retry_instruction": "But first, please take a look at the instructions",
"identomat_liveness_retry_again": "Try again",
"identomat_liveness_retry_instruction_1": "Place your FACE within OVAL",
"identomat_liveness_retry_instruction_2": "Place your FACE within OVAL and follow the on-screen instructions",
"identomat_camera_deny_title": "Camera access denied",
"identomat_camera_deny_settings": "Allow access",
"identomat_camera_deny_cancel": "Cancel process",
"identomat_cascading_instructions": "Ready for the task? \n\n When prompted, repeat \n the facial expression shown on the icons: \n\n<b> • Keep neutral face \n • Smile</b> \n\n good luck!",
"identomat_cascading_button": "Start Liveness Check",
"identomat_cascading_neutral_face": "Keep neutral face",
"identomat_cascading_start": "Get ready for the liveness check!",
"identomat_cascading_smile": "Smile!",
"identomat_cascading_fail": "Liveness Failed",
"identomat_cascading_success": "That's it!"
}
}
}
Last updated