react-native-payments-reborn
Version:
This package is a copy from [react-native-payments](https://github.com/naoufal/react-native-payments).
10 lines (7 loc) • 341 B
JavaScript
// @flow
import { NativeModules, Platform } from 'react-native';
const { RNPayments } = NativeModules;
import _PaymentRequest from './PaymentRequest';
import { PKPaymentButton } from './PKPaymentButton';
export const ApplePayButton = PKPaymentButton;
export const PaymentRequest = Platform.OS === 'android' ? RNPayments : _PaymentRequest;