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

@giulio987/expo-wallet

v1.0.0

Published

Add, read and manage Apple Wallet and Google Wallet passes from React Native / Expo, built with Nitro Modules

Readme

@giulio987/expo-wallet

Add passes to Apple Wallet and Google Wallet from React Native / Expo, and read the passes already in Apple Wallet. Built on Nitro Modules (JSI, no bridge).

v1 is a rewrite: the module is no longer an Expo Module (expo-modules-core) but a Nitro module. It needs a development build, Expo Go is not supported.

Installation

npx expo install @giulio987/expo-wallet react-native-nitro-modules
npx expo prebuild

Requires the New Architecture (default since Expo SDK 53) and Expo SDK 53+ / React Native 0.78+.

Config plugin (iOS)

getPasses, containsPass and removePass only see passes whose pass type identifier is listed in the app's com.apple.developer.pass-type-identifiers entitlement. The plugin adds it for you:

{
  "expo": {
    "plugins": [
      ["@giulio987/expo-wallet", { "passTypeIdentifiers": ["pass.com.example.mypass"] }]
    ]
  }
}

Without passTypeIdentifiers the plugin does nothing (the entitlement must be enabled on your App ID, so it is opt-in); existing identifiers are kept. The matching Pass Type ID must exist in your Apple Developer account and in the app's provisioning profile. Not using Expo? Add the entitlement in Xcode yourself.

Usage

import ExpoWallet, { AddToWalletButton } from "@giulio987/expo-wallet";

if (await ExpoWallet.isAvailable()) {
  // iOS: base64 encoded .pkpass   Android: signed Google Wallet JWT
  const added = await ExpoWallet.addPass(Platform.OS === "ios" ? pkpassBase64 : jwt);
  // true = added, false = user cancelled
}

const passes = await ExpoWallet.getPasses(); // iOS only

<AddToWalletButton buttonStyle="black" onPress={() => ExpoWallet.addPass(payload)} />;

Named exports (import { addPass } from ...) are available too.

| API | iOS | Android | | --- | --- | --- | | isAvailable() | PassKit available | Google Wallet API available | | canAddPasses() | yes | always false (use isAvailable) | | addPass(data) | base64 .pkpass | Google Wallet JWT | | addPasses(data[]) | yes | rejects UNSUPPORTED | | getPasses() | yes (your pass type IDs) | rejects UNSUPPORTED | | containsPass(typeId, serial) | yes | rejects UNSUPPORTED | | removePass(typeId, serial) | yes | rejects UNSUPPORTED | | <AddToWalletButton /> | PKAddPassButton | simple native button* |

Google Wallet has no client API to list or remove saved passes, only a server-side REST API, hence the UNSUPPORTED rejections.

* The Android button is a plain black button. For production use, follow the Google Wallet brand guidelines and use the official "Add to Google Wallet" asset.

Errors are WalletErrors with a code from WALLET_ERRORS, e.g. if (e instanceof WalletError && e.code === WALLET_ERRORS.UNSUPPORTED).

addPass resolves true if the pass was added (on iOS also if it was already in Wallet) and false if the user cancelled. addPasses resolves true only if every pass ended up in Wallet.

Example

cd example
npm install
npx expo prebuild
npm run ios   # or: npm run android

Development

npm install
npm run specs   # regenerates nitrogen/generated after editing src/specs/*.nitro.ts
npm run build

Contributing

Issues and pull requests are welcome.

License

MIT