An open API service indexing awesome lists of open source software.

https://github.com/reeq-dev/react-native-ios-passkit

React-Native wrapper for iOS PassKit. Contains a PKAddPassButton and a methods to work with PassKit.
https://github.com/reeq-dev/react-native-ios-passkit

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

          

## 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

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

or

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

and

```sh
cd ios/
pod install
```

## Usage

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

// ...
{
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](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)