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-zalo-kit

v6.0.0

Published

Zalo SDK (login and user profile) for React Native and Expo

Readme

Zalo Kit for React Native

Zalo Kit is a React Native wrapper around the official Zalo SDKs for Android and iOS, for apps that want "Log in with Zalo" and the user's basic profile.

Features

  • Login through the Zalo app or the web, with automatic web fallback when the app is missing. Failures reject with an error code, so the promise never hangs.
  • Access tokens are refreshed for you. Concurrent calls share one refresh, since Zalo refresh tokens are single-use.
  • Tokens are encrypted with the Android Keystore and kept in the iOS Keychain. Sessions saved by 5.x are migrated.
  • getUserProfile() returns the user's ID, name and avatar.
  • An Expo config plugin sets up both platforms from one line in app.json.
  • On Android there is nothing to add to MainActivity or MainApplication, and the ProGuard rules are included.

Installation

npm install react-native-zalo-kit
# or
yarn add react-native-zalo-kit

# iOS (React Native CLI)
cd ios && pod install

Then create a Zalo app to get your Zalo App ID.

Expo: add the config plugin, then run npx expo prebuild or build with EAS. Expo Go is not supported; use a development build.

{
  "expo": {
    "plugins": [["react-native-zalo-kit", { "appId": "<YOUR_ZALO_APP_ID>" }]]
  }
}

React Native CLI: follow the iOS and Android setup.

Quick start

import {
  ErrorCodes,
  getAccessToken,
  getUserProfile,
  login,
  logout,
} from 'react-native-zalo-kit';

try {
  await login(); // Zalo app if available, otherwise web login
} catch (e: any) {
  if (e.code === ErrorCodes.ZALO_NOT_INSTALLED) {
    // ...
  }
}

const { id, name, picture } = await getUserProfile();
const { accessToken } = await getAccessToken(); // refreshed automatically

logout();

Documentation

Everything else lives on the documentation site: https://maitrungduc1410.github.io/react-native-zalo-kit/

A complete demo app is in example/.

Contributing

See CONTRIBUTING.md. The docs site source is in docs/; run yarn docs:dev to work on it. ARCHITECTURE.md explains how the library works inside.

License

MIT

If you like this project, encourage me by giving it a ⭐️. Happy hacking