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

@zally-sdk/sdk-react-native

v1.6.0

Published

React Native SDK for zally – one npm package that wraps the native iOS and Android zally SDKs

Readme

@zally-sdk/sdk-react-native

React Native SDK for zally — wraps the native iOS and Android SDKs behind a single JavaScript API.

Requirements

  • React Native >= 0.72
  • iOS 17.0+
  • Android: minSdk 23, compileSdk 36, Java 17, AndroidX

Installation

npm install @zally-sdk/sdk-react-native
# or
yarn add @zally-sdk/sdk-react-native

iOS

Expo managed projects — add the plugin in app.json:

{
  "expo": {
    "plugins": ["@zally-sdk/sdk-react-native"]
  }
}

Then run npx expo prebuild or npx expo run:ios.

Bare React Native — set your deployment target to iOS 17.0, add the zally pod to your Podfile:

pod 'zally-sdk', :podspec => 'https://raw.githubusercontent.com/zally-ltd/zally-ios-sdk-package/main/zally-sdk.podspec'

Then cd ios && pod install && cd ...

Android

No extra setup — the native dependency is resolved automatically.

Usage

import zally from '@zally-sdk/sdk-react-native';

// 1. Initialize (call once after user login)
await zally.initialize({
  appUUID: 'your-app-uuid',
  getClientToken: async () => {
    // Fetch a JWT from your backend
    return await yourBackend.getZallyToken();
  },
});

// 2. Start
await zally.start();

// 3. Check state
const state = await zally.getUserState();
console.log(state?.trainingState, state?.zIdStatus, state?.isUser);

// 4. Stop (e.g. on logout)
await zally.stop();

API

| Method | Returns | Description | |--------|---------|-------------| | initialize({ appUUID, getClientToken }) | Promise<void> | Initialize and authorize the SDK. getClientToken is an async function returning a JWT string from your backend. Call once after user login. | | start() | Promise<void> | Start sensor data collection and streaming. Call after initialize(). | | stop() | Promise<void> | Stop the SDK (e.g. on user logout). | | isInitialized() | Promise<boolean> | Whether initialization and authorization completed successfully. | | isRunning() | Promise<boolean> | Whether the SDK is actively collecting data. | | getUserState() | Promise<UserState \| null> | Current user state (training progress, identity verification). Maps to Android userState / iOS BiometricState. |

UserState

{
  trainingState: string;  // "UNTRAINED" | "TRAINING" | "TRAINED"
  zIdStatus: string;      // "UNKNOWN" | "USER" | "IMPOSTER" | "INACTIVE"
  isUser: boolean;        // true if verified as the legitimate user
  isImposter: boolean;    // true if potential imposter detected (Android: zIdStatus.IMPOSTER; iOS: derived from server response)
}

License

Apache-2.0