react-native-add-to-wallet
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

react-native-add-to-wallet

Simple RN bridge for add to wallet button and open wallet method. Does not pass senstive information to the wallet, but rather opens the wallet for manual card entry.

Installation

npm install react-native-add-to-wallet

Usage

import * as React from 'react';
import { Platform, StyleSheet, View } from 'react-native';
import { AddToWalletButton, openWallet } from 'react-native-add-to-wallet';

export default function App() {
  
  return (
    <View style={styles.container}>
      {
        // ios only
        Platform.OS === 'ios' && (
          <AddToWalletButton onPress={openWallet} />
        )
      } 
    </View>
  );
}

Contributing

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

License

MIT

Package Sidebar

Install

npm i react-native-add-to-wallet

Weekly Downloads

2

Version

0.1.7

License

MIT

Unpacked Size

59.9 kB

Total Files

31

Last publish

Collaborators

  • cgriffrun