0.1.0 • Published 3 years ago
rn-google-wallet-pass v0.1.0
rn-google-wallet-pass
A minimal wrapper around Google's pay client that allows to save google wallet passes to an android device
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