Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

react-native-wallet-manager

Package Overview
Dependencies
0
Maintainers
4
Versions
3
Issues
File Explorer

Advanced tools

react-native-wallet-manager

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

    0.0.2latest

Version published
Maintainers
4
Yearly downloads
2,733

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

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc