Identomat documentation
Contact us
  • Introduction
  • Get Started
    • Account Setup
    • User Roles Overview
      • Receiving calls
    • Integration Overview
    • API Access
  • Developer tools
    • Developer guide
    • API Reference
  • SDKs
    • Android SDK
      • Android SDK changelog
    • iOS SDK
      • iOS SDK changelog
    • React Native SDK
      • React Native SDK changelog
    • Flutter SDK
      • Flutter SDK changelog
  • No-code workflow builder
    • Overview
      • Getting started
    • Configuration settings
    • Configuration steps
  • Video KYC
    • Overview
    • Create video KYC session
    • End-user side
    • Operator side
Powered by GitBook
On this page
  • Getting started
  • For iOS:
  • For Android:
  • Usage
  • Config

Was this helpful?

  1. SDKs

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.21

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';
// Callback for when the process finishes
    class Callback {
        callback() {
        console.log('finished')
        }
    }

// Callback for back button
class Back {
    callback() {
      console.log('back')
    
    }
  }
    identomat.setCallback(new Callback());
    identomat.setBackButtonCallback(new Back());
    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_primary":"#A4A4A4",
    "text_secondary":"#676767",
    "text_placeholder"
    "text_disabled"
    "text_inverse"
    "text_link"
    "primary_button":"#7848FF",
    "primary_button_text":"#FFFFFF",
    "secondary_button":"#222222",
    "secondary_button_text":"#FFFFFF",
    "document_outer":"#2D2D2D",
    "loading_indicator_background":"#FFFFFF",
    "iteration_text":"#FFFFFF",
    "inactive_button"
    "inactive_button_text"
    "primary_input_stroke"
    "inactive_input_stroke"
  },
  variables:{
    "liveness_retry_icon_size": 200,                  
    "scan_retry_icon_size": 200,
    "camera_deny_icon_size": 200,
    "upload_retry_icon_size": 200,
    "liveness_retry_text_icon_1_size: 24,
    "liveness_retry_text_icon_2_size: 24,
    "liveness_retry_text_icon_3_size: 24,
    "liveness_retry_text_icon_4_size: 24

    "title_medium_size":20,
    "title_small_size":
    "headline_medium_size":20,
    "headline_small_size"
    "body_medium_size":11
    "body_small_size"

    "title_font":"font-name",
    "headline_font":"font-name",
    "body_font":"font-name",
},
  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_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_vehicle_registration_certificate_front">Upload FRONT SIDE of VEHICLE REGISTRATION CERTIFICATE</string>
      "identomat_vehicle_registration_certificate_back">Upload BACK SIDE of VEHICLE REGISTRATION CERTIFICATE</string>
      
      "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_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_liveness_record_begin_title="Get ready for your video selfie"
      "identomat_liveness_record_begin_subtitle="When prompted, repeat the facial expression shown on the icons"
      "identomat_liveness_record_begin_section_title="Tips"
      "identomat_liveness_record_begin_section_1="First, position your face in the frame"
      "identomat_liveness_record_begin_section_2="Hold still until success notify"
      "identomat_im_ready="I\'m ready"
      
      "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_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_not_smile="Smile not detected"
      "identomat_eyes_closed="Eyes are closed"
      "identomat_face_hold="Hold still"
      "identomat_no_face="Face is missing"
      "identomat_face_covered="Face is covered"

      "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_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!"
      
      "identomat_resend_code">Resend Code</string>
      "identomat_get_code">Get Code</string>
      "identomat_sms_title">Verify Phone Number</string>
      "identomat_sms_subtitle">Enter your correct phone number\nto get verification code</string>
      "identomat_resend_in">Resend code in </string>
      "identomat_invalid_number">Please enter valid number</string>
      "identomat_invalid_code">The code is not valid</string>
      "identomat_sms_code_sent">Enter the 4-digit verification code sent to </string>
      "identomat_enter_sms_code">Enter SMS code</string>
      "identomat_phone_number_hint">+1 xxx xxx xxxx</string>
      "identomat_enter_phone_number">Enter phone number</string>
      "identomat_enter_correct_number">Enter your correct phone number</string>
      "identomat_confirm">Confirm</string>
      
      "identomat_enter_correct_email">Enter your correct email address</string>
      "identomat_enter_email_address">Enter email address</string>
      "identomat_enter_valid_email">Please enter valid email</string>
      "identomat_email_hint">Email address</string>
      
      "identomat_camera_deny_title": "Camera access denied",
      "identomat_camera_deny_settings": "Allow access",
      "identomat_camera_deny_cancel": "Cancel process",
      
      "identomat_search">Search</string>
      
      "identomat_agreement_header = "";
      "identomat_require_email_header = "";
      "identomat_require_phone_number_header = "";
      "identomat_require_phone_number_check_header = "";
      "identomat_enter_sms_code_header = "";
      "identomat_select_documents_header = "";
      "identomat_nfc_header = "";
      "identomat_upload_header = "";
      "identomat_new_liveness_header = "";
      "identomat_camera_access_header = "";
      "identomat_select_country=""
      "identomat_retry_header = "";
      
    }
  }
}
PreviousiOS SDK changelogNextReact Native SDK changelog

Last updated 1 day ago

Was this helpful?