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

@vouchmark/widget-react-native

v1.0.0

Published

React Native SDK for embedding the Vouchmark KYB verification widget via WebView

Readme

@vouchmark/widget-react-native

React Native SDK for embedding the Vouchmark KYB verification widget via WebView.

Installation

npm install @vouchmark/widget-react-native react-native-webview
# or
yarn add @vouchmark/widget-react-native react-native-webview

iOS

cd ios && pod install

Required Permissions

iOS

Add the following to your Info.plist:

<key>NSCameraUsageDescription</key>
<string>Camera access is required for identity verification</string>
<key>NSMicrophoneUsageDescription</key>
<string>Microphone access is required for liveness checks</string>

Android

Add the following to your AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />

Usage

Full-screen Widget

import { VouchmarkWidget } from "@vouchmark/widget-react-native";

function VerificationScreen() {
  return (
    <VouchmarkWidget
      widgetId="wgt_abc123"
      publicKey="pk_live_xyz"
      environment="live"
      applicant={{
        email: "[email protected]",
        businessName: "Acme Inc",
      }}
      onSuccess={(applicant) => {
        console.log("Verified:", applicant.id, applicant.status);
      }}
      onAbandon={() => {
        navigation.goBack();
      }}
      onError={(error) => {
        console.error("Widget error:", error.code, error.message);
      }}
      onStepCompleted={(step) => {
        console.log("Step completed:", step.moduleId, step.status);
      }}
    />
  );
}

Modal Widget

import { useState } from "react";
import { Button } from "react-native";
import { VouchmarkModal } from "@vouchmark/widget-react-native";

function App() {
  const [showWidget, setShowWidget] = useState(false);

  return (
    <>
      <Button title="Start Verification" onPress={() => setShowWidget(true)} />
      <VouchmarkModal
        visible={showWidget}
        onDismiss={() => setShowWidget(false)}
        animationType="slide"
        widgetId="wgt_abc123"
        publicKey="pk_live_xyz"
        environment="live"
        onSuccess={(applicant) => {
          console.log("Verified:", applicant.status);
        }}
        onError={(error) => {
          console.error(error.message);
        }}
      />
    </>
  );
}

Props

VouchmarkWidget

| Prop | Type | Required | Description | |------|------|----------|-------------| | widgetId | string | Yes | Your Vouchmark widget ID | | publicKey | string | Yes | Your Vouchmark public API key | | environment | "sandbox" \| "live" | Yes | API environment | | applicant | ApplicantInput | No | Pre-fill applicant data | | referenceId | string | No | Your internal reference ID | | sessionToken | string | No | Pre-authenticated session token | | locale | string | No | Widget language (default: "en") | | presentationStyle | "fullScreen" \| "modal" | No | Presentation hint | | onSuccess | (applicant: ApplicantResult) => void | No | Called when verification succeeds | | onAbandon | () => void | No | Called when user exits the widget | | onError | (error: WidgetError) => void | No | Called on widget error | | onStepCompleted | (step: StepResult) => void | No | Called when a verification step completes |

VouchmarkModal

Extends all VouchmarkWidget props, plus:

| Prop | Type | Required | Description | |------|------|----------|-------------| | visible | boolean | Yes | Controls modal visibility | | onDismiss | () => void | No | Called when modal is dismissed | | animationType | "slide" \| "fade" \| "none" | No | Modal animation (default: "slide") |

Types

interface ApplicantInput {
  email?: string;
  businessName?: string;
  registrationNumber?: string;
  phone?: string;
  tin?: string;
  jurisdiction?: string;
  industry?: string;
}

interface ApplicantResult {
  id: string;
  status: "approved" | "rejected" | "requires_review";
  riskScore: number | null;
  decisionReason: string | null;
  subject: ApplicantInput;
}

interface WidgetError {
  code: string;
  message: string;
}

interface StepResult {
  moduleId: string;
  status: "passed" | "failed" | "requires_review";
}

License

MIT