Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 594 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 594 Bytes

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