Socket
Socket
Sign inDemoInstall

react-native-wallet-manager

Package Overview
Dependencies
514
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-wallet-manager

Provides some Apple Wallet's functionality, like adding passes, removing passes and checking passises for existing.


Version published
Weekly downloads
1.6K
decreased by-8.4%
Maintainers
4
Created
Weekly downloads
 

Changelog

Source

v0.0.2

Added

  • Added a method that allows user to view the added Pass into the wallet (c4e7dabb5aebf1f7176cf3815436156648025ffa by @pratikkishornaik)

Readme

Source

react-native-wallet-manager

Provides some Apple Wallet's functionality, like adding passes, removing passes and checking passises for existing.

npm version npm MIT
Platform - Android Platform - iOS

Installation

yarn add react-native-wallet-manager

or

npm install react-native-wallet-manager

iOS installation

Add Wallet module to capabilities in Xcode.

Don't forget to run pod install!

Usage

Adding pass to wallet by url

import WalletManager from 'react-native-wallet-manager';

// ...

try {
  const result = await WalletManager.addPassFromUrl(
    'https://github.com/dev-family/react-native-wallet-manager/blob/main/example/resources/test.pkpass?raw=true'
  );
  console.log(result);
  // true
} catch (e) {
  console.log(e);
}

Checking for pass exists (iOS only)

try {
  const result = await WalletManager.hasPass(
    'pass.family.dev.stage.beerpoint-master',
    'serial-xxx'
  );
  console.log(result);
} catch (e) {
  console.log(e);
}

First argument is pass identifier. You can pass second argument (optional) to specify pass serial number.

Removing pass (iOS only)

try {
  const result = await WalletManager.removePass(
    'pass.family.dev.stage.beerpoint-master',
    'serial-xxx'
  );
  console.log(result);
} catch (e) {
  console.log(e);
}

First argument is pass identifier. You can pass second argument (optional) to specify pass serial number.

Project inspired by react-native-wallet

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Keywords

FAQs

Last updated on 21 Mar 2022

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc