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

@nsure-ai/react-native-client-sdk

v1.3.22

Published

Unified React Native Module for nSure SDK (iOS & Android)

Readme

@nsure-ai/react-native-client-sdk

Official React Native SDK wrapper for nSure (Android & iOS)

Easily integrate the nSure SDK into your React Native applications using this unified npm package.


Installation

Using npm:

npm install @nsure-ai/react-native-client-sdk
npx pod-install

Usage

Step 1: Initialize nSure SDK

Call initialize with your App ID, Partner ID, and optionally a configBaseUrl parameter (can be null) to override the default configuration endpoint:

import NSure from '@nsure-ai/react-native-client-sdk';

// Basic initialization
await NSure.initialize('YOUR_APP_ID', 'OPTIONAL_PARTNER_ID');

// Optionally specify a custom configuration base URL (can be null)
await NSure.initialize('YOUR_APP_ID', 'OPTIONAL_PARTNER_ID', 'https://custom-config-url.com');

Note:

  • On Android: appId, partnerId, and optional configBaseUrl (can be null) are passed into the native SDK.
  • On iOS: appId, partnerId, and optional configBaseUrl (can be null) are passed into the native SDK.

Step 2: Retrieve Device ID

Once initialized, get the device ID:

const deviceId = await NSure.getDeviceId();

This deviceId must be sent to your server to identify sessions.


Step 3: Pass Device ID to Your Server

Include the deviceId in your API requests under sessionInfo:

{
  "sessionInfo": {
    "deviceId": "DEVICE_ID_FROM_SDK"
  }
}

Step 4: (Optional) Check SDK Version

At any time you can read the nSure SDK version:

const sdkVersion = await NSure.getVersion();
console.log('nSure SDK Version:', sdkVersion);

Native Dependencies

Android (Gradle) - (Handled Automatically)

Your app does not need any manual changes. This package automatically adds:

implementation 'com.github.nsure-ai:android-sdk:1.3.12'
implementation 'com.fingerprint.android:pro:2.8.0'

AndroidManifest.xml - Add screen-capture permission

In your AndroidManifest.xml, add:

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

This permission is required for nSure to detect when the user takes a screenshot.

iOS (CocoaPods) - (Handled Automatically)

CocoaPods integration is driven by nsure.podspec. After installing:

npx pod-install

the nSure.xcframework and bridge headers will be linked automatically.


Troubleshooting

  • Native Module "NSureSDK" is null
    • Make sure you’ve rebuilt your app (npx react-native run-android / run-ios)
    • Clear Metro cache: npx react-native start --reset-cache
    • Confirm @nsure-ai/react-native-client-sdk appears in npx react-native config

  • TurboModule argument errors
    If you see “expected X arguments,” ensure you’re on RN 0.66+ and using the latest version of this package, which uses Promise‐based bridges.


Happy coding! 🚀