@reeq/react-native-ios-passkit
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Warning

This package is deprecated and won't be supported. Please use https://www.npmjs.com/package/@reeq/react-native-passkit instead. It supports google wallet API and some additional functionality for iOS as well.

react-native-ios-passkit

React-Native wrapper for iOS PassKit. Contains a PKAddPassButton and a methods to work with PassKit.

Installation

npm install @reeq/react-native-ios-passkit

or

yarn add @reeq/react-native-ios-passkit

and

cd ios/
pod install

Usage

import {
  canAddPasses,
  addPass,
  AddPassButton,
} from '@reeq/react-native-ios-passkit';

// ...
<AddPassButton
  style={{ margin: 24, height: 60, width: 194 }}
  onPress={async () => {
    try {
      const isAddable = await canAddPasses();
      if (isAddable) {
        await addPass('YOUR BASE 64 PASS');
      }
    } catch (err) {
      console.log(err);
    }
  }}
/>;

Creating pass

Passes can be created with library (nodejs): https://www.npmjs.com/package/@walletpass/pass-js

Contributing

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

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i @reeq/react-native-ios-passkit

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

47 kB

Total Files

26

Last publish

Collaborators

  • reeq