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

react-native-nitro-myid

v0.1.3

Published

High-performance React Native wrapper for MyID SDK - Uzbekistan's biometric identification system

Readme

react-native-nitro-myid

High-performance React Native wrapper for MyID SDK - Uzbekistan's biometric identification system. Built with Nitro Modules for native-speed JSI integration.

Features

  • iOS & Android support
  • High performance via JSI (no bridge overhead)
  • 🎨 Full customization - colors, branding, localization
  • 📝 TypeScript first-class support
  • 🔐 Biometric identification via MyID services

Installation

npm install react-native-nitro-myid react-native-nitro-modules
# or
yarn add react-native-nitro-myid react-native-nitro-modules

iOS Setup

  1. Add MyID SDK to your Podfile:
# ios/Podfile
pod 'MyIdSDK', :git => 'https://gitlab.myid.uz/myid-public-code/myid-ios-sdk.git', :tag => '3.1.3'
  1. Run pod install:
cd ios && pod install
  1. Add required permissions to Info.plist:
<key>NSCameraUsageDescription</key>
<string>Camera access is required for identity verification</string>

Android Setup

  1. Add MyID Maven repository in your android/build.gradle:
allprojects {
    repositories {
        // ... other repos
        maven { url "https://artifactory.aigroup.uz:443/artifactory/myid" }
    }
}
  1. Minimum SDK version 24 is required.

Quick Start

import {
  startMyId,
  MyIdLocale,
  MyIdEnvironment,
} from 'react-native-nitro-myid';

try {
  const result = await startMyId({
    sessionId: 'your-session-id',
    clientHash: 'your-client-hash',
    clientHashId: 'your-client-hash-id',
    locale: MyIdLocale.EN,
    environment: MyIdEnvironment.SANDBOX,
  });

  console.log('Verification code:', result.code);
  console.log('Face image (base64):', result.base64Image);
} catch (error) {
  console.error('Verification failed:', error.message);
}

API Reference

startMyId(config: MyIdConfig): Promise<MyIdResult>

Promise-based API for simple usage.

const result = await startMyId(config);

useMyId()

Hook-based API with callbacks for more control.

const { start } = useMyId();

start(config, {
  onSuccess: (result) => console.log('Success:', result.code),
  onError: (error) => console.error('Error:', error.message),
  onUserExited: () => console.log('User cancelled'),
});

Configuration

MyIdConfig

| Property | Type | Required | Description | | --------------------- | ------------------------- | -------- | ------------------------------ | | sessionId | string | ✅ | Session ID from MyID backend | | clientHash | string | ✅ | Client hash for authentication | | clientHashId | string | ✅ | Client hash ID | | locale | MyIdLocale | | UI language | | environment | MyIdEnvironment | | SANDBOX or PRODUCTION | | entryType | MyIdEntryType | | Verification type | | residency | MyIdResidency | | User residency type | | cameraShape | MyIdCameraShape | | Camera preview shape | | minAge | number | | Minimum age requirement | | showErrorScreen | boolean | | Show SDK error screens | | appearance | MyIdAppearance | | UI customization (iOS only) | | organizationDetails | MyIdOrganizationDetails | | Branding |


Enums

MyIdLocale

MyIdLocale.EN; // English
MyIdLocale.RU; // Russian
MyIdLocale.UZ; // Uzbek

MyIdEnvironment

MyIdEnvironment.SANDBOX; // Testing environment
MyIdEnvironment.PRODUCTION; // Production environment

MyIdEntryType

MyIdEntryType.IDENTIFICATION; // Full identification
MyIdEntryType.FACE_DETECTION; // Face detection only

MyIdResidency

MyIdResidency.RESIDENT; // Uzbekistan resident
MyIdResidency.NON_RESIDENT; // Non-resident
MyIdResidency.USER_DEFINED; // User selects

MyIdCameraShape

MyIdCameraShape.CIRCLE; // Circular camera view
MyIdCameraShape.ELLIPSE; // Elliptical camera view

Customization

iOS Appearance (Programmatic)

const config: MyIdConfig = {
  // ... required fields
  appearance: {
    colorPrimary: '#6200EE',
    colorOnPrimary: '#FFFFFF',
    colorButtonContainer: '#3700B3',
    buttonCornerRadius: 12,
  },
};

Android Appearance (Resource-based)

Android uses XML resources for theming. Add to your android/app/src/main/res/values/colors.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="myid_color_primary">#6200EE</color>
    <color name="myid_color_onPrimary">#FFFFFF</color>
    <color name="myid_button_container_color">#3700B3</color>
    <color name="myid_button_content_color">#FFFFFF</color>
</resources>

For button corner radius, add to res/values/dimens.xml:

<dimen name="myid_button_corner_radius">12dp</dimen>

Organization Branding

const config: MyIdConfig = {
  // ... required fields
  organizationDetails: {
    phoneNumber: '+998901234567',
    logo: 'my_company_logo', // iOS: base64-encoded image string | Android: drawable resource name
  },
};

Result Types

MyIdResult

interface MyIdResult {
  code: string; // Verification code from MyID
  base64Image: string; // Face portrait as base64 PNG
}

MyIdError

interface MyIdError {
  code: number; // Error code
  message: string; // Error description
}

Error Handling

The SDK may throw errors in these cases:

| Code | Description | | ---- | -------------------------------------------- | | -1 | User exited | | 100+ | SDK-specific errors (see MyID documentation) |

try {
  const result = await startMyId(config);
} catch (error) {
  // Error format: "[code] message"
  console.error(error.message);
}

Requirements

| Platform | Minimum Version | | ------------ | --------------------- | | iOS | 13.0+ | | Android | API 24+ (Android 7.0) | | React Native | 0.76+ |

License

MIT


Made with Nitro Modules