1.1.21 • Published 6 months ago

@identomat-inc/react-native-identomat v1.1.21

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 months ago

react-native-identomat

Getting started

$ npm install '@identomat-inc/react-native-identomat'

iOS

  1. run pod install in you ios directory

Android

  1. 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')
        }
    }
    class BackButtonCallback {
        callback() {
        console.log('BackButton')
        }
    }
    identomat.setCallback(new Callback())
    identomat.setBackButtonCallback(new BackButtonCallback())
    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",
  },
  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!"
    }
  }
}
1.1.1

12 months ago

1.1.0

12 months ago

1.1.9

11 months ago

1.1.8

12 months ago

1.1.7

12 months ago

1.1.6

12 months ago

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.1.12

9 months ago

1.1.11

9 months ago

1.1.10

10 months ago

1.1.16

8 months ago

1.1.15

8 months ago

1.0.47

12 months ago

1.1.14

9 months ago

1.0.46

12 months ago

1.1.13

9 months ago

1.0.45

1 year ago

1.1.19

7 months ago

1.1.18

8 months ago

1.1.17

8 months ago

1.1.21

6 months ago

1.1.20

6 months ago

1.0.44

1 year ago

1.0.43

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.0.39

2 years ago

1.0.38

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago