npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@victoria-id/victoria_id_check_id_sdk_react_native

v1.14.0

Published

Victoria-ID - ID check - SDK - React-Native

Readme

Victoria-ID - ID check - SDK - Documentation - React Native

Table of contents

  1. Victoria-ID - ID check - SDK - Documentation - React Native
    1. Table of contents
    2. Introduction
    3. Adding the SDK to your project
      1. Installing dependency
        1. iOS
        2. Android
    4. Usage
      1. Importing the SDK
      2. Starting the SDK
      3. Listening to SDK events

Introduction

This SDK contains the ID check from Victoria-ID. It can be embedded in your application, which we will refer to as the "host application". The SDK is designed to launch an activity that walks the user through multiple steps of the ID check. After completion, the SDK will return metadata to the host application, indicating the success or failure of the operation.


Adding the SDK to your project

Installing dependency

npm install @victoria-id/victoria_id_check_id_sdk_react_native

iOS

  1. Add an NSCameraUsageDescription entry to app's Info.plist
  2. Add required NFC capabilities
  3. In your React Native app ios directory, run:
pod install

Android

  1. Add required maven repositories:

    allprojects {
      repositories {
        maven { url "https://raw.githubusercontent.com/victoria-id/victoria_id_check_id_sdk_android/master/maven/" }
        maven { url "https://raw.githubusercontent.com/iProov/android/master/maven/" }
      }
    }
  2. Set minSdkVersion:

    android {
        defaultConfig {
            minSdkVersion 28
        }
    }
  3. Exclude 'META-INF/versions/9/OSGI-INF/MANIFEST.MF' resource:

    android {
        packaging {
            resources.excludes.add("META-INF/versions/9/OSGI-INF/MANIFEST.MF")
        }
    }

Usage

Importing the SDK


import Victoria_ID_Check_ID_SDK from '@victoria-id/victoria_id_check_id_sdk_react_native';

Starting the SDK


Victoria_ID_Check_ID_SDK.launch(
 {
  // Set the initial theme colors of the UI.
  // These colors should match the colors as they are set in the Portal settings of the screening portal.
  // When the SDK reaches step 3 of the user flow, it has made contact with the portal and fetched updated colors.
  color_primary: '#f108a7',     // The primary color used for call-to-action elements.
  color_secondary: '#dfbdfe',   // Reserved.
  color_tertiary: '#13f3cb',    // Reserved.

  font_color: '#0b0c5d',        // Reserved.
  background_color: '#eedad6',  // Reserved.

  /*
   Provide the API URL (with token).

   Your API is expected to call `GET screenee/:screenee_id/check/identity/travel_document/text_chip_certificate/token/`
    as described in the Victoria Connect API documentation at https://doc.api.victoria-id.com/#1f481ddb-3547-4c17-8ec4-e47dfd47fb71
    to get the temporary token required for the API to start the process.
  */
  api_uri: 'https://api.victoria-id.com/screenee/:screenee_id/check/identity/travel_document/text_chip_certificate/?domain=example.victoria-id.com&token=<token>'
 });

Listening to SDK events


useEffect(() =>
 {
  const neeEvent_Emitter = new NativeEventEmitter(Victoria_ID_Check_ID_SDK.native_module);

  let elEvent_Listener = neeEvent_Emitter.addListener('victoria_id_check_id_sdk_result', eEvent =>
   {
    switch (eEvent.code)
     {
      case 'feature_not_found_camera':
       {
        console.warn('ID check', 'The device does not have a camera needed to scan a QR code and/or ID document.');
        break;
       }

      case 'feature_not_found_nfc':
       {
        console.warn('ID check', 'The device does not have NFC capability.');
        break;
       }

      case 'exception_api_url':
       {
        console.warn('ID check', 'The Victoria Connect API did not accept the API URL to be able to start the process.');
        break;
       }

      case 'exception_api_data':
       {
        console.warn('ID check', 'The Victoria Connect API did not accept the data payload to finish the process.');
        break;
       }

      case 'exception_generic':
       {
        console.warn('ID check', 'Generic exception.');
        break;
       }

      case 'cancel':
       {
        console.warn('ID check', 'User canceled ID check flow.');
        break;
       }

      case 'data_share_decline':
       {
        console.warn('ID check', 'User declined to share data.');
        break;
       }

      case 'success':
       {
        console.log('ID check', 'ID check was completed successfully.');

        /*
         Your API is expected to fetch the information directly from the Victoria Connect API using:
         `GET group/:group_id/screening/:screening_id/screenee/:screenee_id/`.
        */
        break;
       }

      default:
       {
        console.warn('ID check', 'Unknown result code:', eEvent.code);
       }
     }
   });

  return () =>
   {
    elEvent_Listener.remove();
   };

 }, []);