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-kyc-sdk-webninjaz

v1.0.0

Published

A React Native SDK for KYC (Know Your Customer) verification

Readme

React Native KYC SDK

A React Native SDK for KYC (Know Your Customer) verification that provides a simple way to integrate KYC functionality into your React Native applications.

Features

  • Camera and storage permissions handling
  • Document verification
  • API integration for KYC verification
  • Cross-platform support (iOS and Android)
  • Easy to integrate and use
  • Authentication support

Installation

npm install react-native-kyc-sdk
# or
yarn add react-native-kyc-sdk

iOS Setup

Add the following to your ios/Podfile:

pod 'react-native-permissions', :path => '../node_modules/react-native-permissions'

Then run:

cd ios && pod install

Android Setup

Add the following permissions to your android/app/src/main/AndroidManifest.xml:

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

Usage

import ReactNativeKycSdk from 'react-native-kyc-sdk';

// Initialize the SDK
const kycSdk = new ReactNativeKycSdk({
  baseUrl: 'https://kyc.webninjaz.com/api/v1' // optional, defaults to this URL
});

// Login to the service
const login = async () => {
  try {
    const response = await kycSdk.login(
      '[email protected]',
      'Mahesh@321'
    );
    console.log('Login successful:', response);
  } catch (error) {
    console.error('Login failed:', error);
  }
};

// Start KYC verification
const startVerification = async () => {
  try {
    // Initialize SDK
    await kycSdk.initialize();

    // Start verification process
    const result = await kycSdk.startKycVerification({
      userId: 'user123',
      documentType: 'passport',
      // Add other required user data
    });

    console.log('Verification started:', result);
  } catch (error) {
    console.error('Verification failed:', error);
  }
};

// Check verification status
const checkStatus = async (verificationId) => {
  try {
    const status = await kycSdk.getVerificationStatus(verificationId);
    console.log('Verification status:', status);
  } catch (error) {
    console.error('Failed to get status:', error);
  }
};

API Reference

login(userEmail, userPassword)

Authenticates the user with the KYC service.

Parameters:

  • userEmail (String): User's email address
  • userPassword (String): User's password

Returns:

  • Promise that resolves with the login response containing the authentication token

initialize()

Initializes the SDK and requests necessary permissions.

startKycVerification(userData)

Starts the KYC verification process.

Parameters:

  • userData (Object): User information and document details

getVerificationStatus(verificationId)

Checks the status of a verification process.

Parameters:

  • verificationId (String): The ID of the verification process

Error Handling

The SDK throws errors in the following cases:

  • Authentication failed
  • Permission denied
  • Network errors
  • Invalid user data
  • Server errors

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT