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-nitro-wallet-manager

v1.0.1

Published

High-performance Apple Wallet and Google Wallet helpers for React Native via Nitro Modules

Readme

react-native-nitro-wallet-manager

High-performance Apple Wallet and Google Wallet helpers for React Native, built with Nitro Modules.

Features

  • Nitro Module native bindings for low-overhead calls from JavaScript.
  • Apple Wallet pass detection, Wallet opening, and .pkpass add flow on iOS.
  • Google Wallet JWT save flow on Android.
  • Small typed TypeScript API with lazy hybrid object creation.
  • Android autolinking support through NitroWalletPackage.
  • iOS CocoaPods autolinking through generated Nitro bindings.

Installation

npm install react-native-nitro-wallet-manager react-native-nitro-modules

For iOS, install pods after adding the package:

cd ios
pod install

This package expects a React Native project with Nitro Modules configured.

Usage

import { WalletManager, WalletPassKit } from 'react-native-nitro-wallet-manager';

const canAddApplePasses = await WalletPassKit.canAddPasses();

if (canAddApplePasses) {
  await WalletPassKit.addPass(base64PkPass);
}

const hasPass = await WalletManager.hasPass('pass.com.example.wallet');

if (hasPass) {
  await WalletManager.viewInWallet('pass.com.example.wallet');
}

await WalletManager.addPassToGoogleWallet(googleWalletJwt);

API

WalletManager.hasPass(passTypeIdentifier)

Checks whether Apple Wallet contains a pass with the given pass type identifier.

  • iOS: returns true when the pass exists in PKPassLibrary.
  • Android: returns whether the identifier has been saved by the Google Wallet helper.

WalletManager.viewInWallet(passTypeIdentifier)

Opens the native wallet app.

  • iOS: opens Apple Wallet.
  • Android: opens Google Wallet or its Play Store listing when needed.

WalletManager.canAddPasses()

Checks whether the current platform can start the platform-specific wallet add flow.

WalletManager.addPassToGoogleWallet(jwt)

Starts the Google Wallet save flow with a signed JWT.

  • Android: opens the Google Wallet save URL.
  • iOS: rejects because Google Wallet save is Android-only in this module.

WalletManager.clearSavedPass(passTypeIdentifier)

Clears the locally stored Android marker for a saved Google Wallet pass.

WalletPassKit.canAddPasses()

Checks whether Apple Wallet can add passes on the current iOS device.

WalletPassKit.addPass(base64PkPass)

Presents the native Apple Wallet add-pass UI for a base64 encoded .pkpass payload.

Platform Notes

iOS

WalletPassKit.addPass accepts raw base64 or a data URL string. The native implementation decodes the payload, creates a PKPass, and presents PKAddPassesViewController on the main thread.

WalletManager.viewInWallet opens Wallet using system URL schemes. Make sure your app has any URL scheme visibility configuration required by your target iOS version and app policy.

Android

WalletManager.addPassToGoogleWallet opens:

https://pay.google.com/gp/v/save/{jwt}

The module stores a local marker after starting the save flow so hasPass can answer quickly for the configured pass identifier. The Google Wallet app package used for detection is:

com.google.android.apps.walletnfcrel

Development

npm run typecheck
npm run specs
npm run build
npm run pack:check

npm run specs regenerates Nitro bindings from the TypeScript specs.

License

MIT