Socket
Book a DemoInstallSign in
Socket

react-native-expo-apple-wallet

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-expo-apple-wallet

A module to call apple wallet using Passkit API

3.3.1
latest
Source
npmnpm
Version published
Weekly downloads
64
64.1%
Maintainers
1
Weekly downloads
 
Created
Source

expo-apple-wallet (perfect for managed Expo projects)

Add the package to your project dependencies

npm install react-native-expo-apple-wallet

or

yarn add react-native-expo-apple-wallet

1. Settings in Apple Developer panel

Within your identifier settings

Add capabilities

Logo da Minha Empresa Logo da Minha Empresa

1.1 You need to send an e-mail to Apple asking for the release of capability "In-App Provisioning" in the panel.

1.2 Create a profile of type "App Store Provisioning Profile"

2. Adding capabilities in the project

In your app.config.js file add this entitlements configs

ios: {
    entitlements: {
        "com.apple.developer.payment-pass-provisioning": true,
        "com.apple.developer.pass-type-identifiers": ["$(TeamIdentifierPrefix)*"],
      },
},

3. Usage

Checking if Passkit is available

const init = async () => {
    setIsAvailable(await ExpoAppleWalletModule.isAvailable())
}

useEffect(() => {
    init().then()
  }, [])

Call to add card

const addCard = async () => {
    const response = await ExpoAppleWalletModule.initEnrollProcess(panTokenSuffix, holder)

    if (response) {
      const {nonce, nonceSignature, certificates} = response

      console.log(nonce, nonceSignature, certificates)

      // call your back-end

      const activationData = "param1"
      const encryptedPassData = "param2"
      const ephemeralPublicKey = "param3"

      await ExpoAppleWalletModule.completeEnrollment(
          activationData,
          encryptedPassData,
          ephemeralPublicKey,
      )
    }
}

Keywords

react-native

FAQs

Package last updated on 22 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.