0.1.0 • Published 3 years ago

rn-google-wallet-pass v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

rn-google-wallet-pass

A minimal wrapper around Google's pay client that allows to save google wallet passes to an android device

https://user-images.githubusercontent.com/59275080/180892413-66e94f60-3233-4adf-b755-e7c6f71cbdc0.mp4

Installation

note: this is a native module for Android only (not supported with expo managed workflow)

npm install rn-google-wallet-pass

Usage

import { isSupported, addWalletPass } from 'rn-google-wallet-pass';

// ...

/* Must call isSupported first as it fetches the client */
if (await isSupported()) addWalletPass(jsonStringObject);
// note: isSupported is async as it requires fetching the google pay client

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