@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
16 lines (13 loc) • 512 B
text/typescript
import { NativeModules } from 'react-native';
import type {
AdyenActionComponent,
ConditionalPaymentComponent,
} from '../../core';
import { ModuleMock } from '../base/ModuleMock';
import { GooglePayWrapper } from './GooglePayWrapper';
export interface GooglePayModule
extends ConditionalPaymentComponent, AdyenActionComponent {}
/** Google Pay component (only available for Android) */
export const AdyenGooglePay: GooglePayModule = new GooglePayWrapper(
NativeModules.AdyenGooglePay ?? ModuleMock
);