Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 633 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 633 Bytes

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