Vitalik7 / rn-apple-pay-button

Apple Pay button component for React Native (iOS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-rn-apple-pay-button

Getting started

npm install react-native-rn-apple-pay-button --save

Mostly automatic installation

react-native link react-native-rn-apple-pay-button

cd ios/ && pod install

Usage

import { ApplePayButton } from 'react-native-rn-apple-pay-button';

// Usage
<ApplePayButton
    buttonStyle="black"
    type="donate"
    cornerRadius={8} // Default value is 4.0
    width={200}
    height={45}
    onPress={handleApplePay}
/>

Supported button types

https://developer.apple.com/documentation/passkit/pkpaymentbuttontype

About

Apple Pay button component for React Native (iOS)


Languages

Language:Objective-C 60.7%Language:Java 20.9%Language:Ruby 10.3%Language:JavaScript 8.1%