rn-google-wallet-pass
v0.1.0
Published
React-native wrapper for adding google wallet passes
Downloads
3,367
Maintainers
Readme
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