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

@koraidv/react-native

v1.9.2

Published

Kora IDV Identity Verification SDK for React Native

Readme

@koraidv/react-native

Kora IDV Identity Verification SDK for React Native. Thin wrapper over the native iOS and Android SDKs — all camera capture, ML processing, liveness detection, and UI runs in the native layer.

Requirements

  • React Native >= 0.72
  • iOS >= 14.0
  • Android minSdk 24

Installation

npm install @koraidv/react-native
# or
yarn add @koraidv/react-native

iOS

The SDK depends on the native KoraIDV pod (published on CocoaPods trunk). Add to your ios/Podfile inside the target block, before use_react_native!:

pod 'KoraIDV', '~> 1.5'

Camera permission is required — add to your Info.plist:

<key>NSCameraUsageDescription</key>
<string>This app uses the camera to capture identity documents and verify your selfie.</string>

Then:

cd ios && pod install

Android

The SDK ships an AAR compiled with isCoreLibraryDesugaringEnabled = true and uses java.time APIs. Consumers must enable the same feature in their app module — otherwise the build fails with Dependency 'koraidv-release.aar' requires core library desugaring to be enabled for :app.

Edit android/app/build.gradle:

android {
    compileOptions {
        coreLibraryDesugaringEnabled true
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }
}

dependencies {
    coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
}

Add camera permissions to android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" android:required="true" />

Worked example

A full end-to-end RN 0.79 example app lives in example/. It builds clean on both platforms and is the canonical "this works" reference — see example/SETUP.md for the step-by-step procedure we verified.

Usage

Imperative API

import { KoraIDV, DocumentType } from '@koraidv/react-native';

KoraIDV.configure({
  apiKey: 'sk_live_xxx',
  tenantId: 'your-tenant-uuid',
  documentTypes: [DocumentType.INTERNATIONAL_PASSPORT, DocumentType.GHANA_CARD],
  livenessMode: 'active',
  theme: { primaryColor: '#2563EB' },
});

const result = await KoraIDV.startVerification('user-123', 'standard');
if (result.type === 'success') {
  console.log(result.verification.status);
}

React Hook

import { KoraIDVProvider, useKoraIDV } from '@koraidv/react-native';

function App() {
  return (
    <KoraIDVProvider apiKey="sk_live_xxx" tenantId="your-tenant-uuid">
      <VerifyScreen />
    </KoraIDVProvider>
  );
}

function VerifyScreen() {
  const { startVerification, verification, error, isLoading, isCancelled } = useKoraIDV();

  return (
    <Button
      onPress={() => startVerification('user-123')}
      title="Verify Identity"
    />
  );
}

Component

import { KoraIDVProvider, VerificationFlow } from '@koraidv/react-native';

<KoraIDVProvider apiKey="sk_live_xxx" tenantId="your-tenant-uuid">
  <VerificationFlow
    externalId="user-123"
    onComplete={(v) => console.log(v.status)}
    onError={(e) => console.error(e.code)}
    onCancel={() => console.log('cancelled')}
  />
</KoraIDVProvider>

API Reference

KoraIDV.configure(config)

Initialize the SDK. Must be called before starting any verification.

KoraIDV.startVerification(externalId, tier?, options?)

Start a new verification flow. Returns a Promise<VerificationFlowResult>.

KoraIDV.resumeVerification(verificationId)

Resume an existing verification. Returns a Promise<VerificationFlowResult>.

KoraIDVProvider

React context provider that configures the SDK for child components.

useKoraIDV()

React hook providing startVerification, verification, error, isLoading, isCancelled, and reset.

VerificationFlow

Headless component that auto-starts verification and fires onComplete, onError, and onCancel callbacks.

License

MIT