@azizuysal/wallet-kit
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

wallet-kit

A React Native wrapper for Apple PassKit written in typescript. Google Wallet implementation will be coming soon (hopefully).

Installation

npm install wallet-kit

Usage

import { Wallet } from '@react-native/wallet';

// ...

const addSinglePass = async () => {
    try {
      const file = await ... // read pkpass file into base64 string
      await Wallet.addPass(file);
    } catch (error) {
      console.error(error);
    }
  };

Contributing

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

License

MIT

Package Sidebar

Install

npm i @azizuysal/wallet-kit

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

28.2 kB

Total Files

37

Last publish

Collaborators

  • azizuysal