UNPKG

@adyen/react-native

Version:

Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native

11 lines 821 B
import { type EmitterSubscription } from 'react-native'; import { type EventHandlerRefs } from '../components/utils/startEventListeners'; import type { AdyenComponentContextType } from './useComponent'; import type { EventListenerWrapper, NativeModuleWithConstants } from '../modules/base/EventListenerWrapper'; type ComponentSubscriptionManager = AdyenComponentContextType & { removeEventListeners: <T extends NativeModuleWithConstants>(nativeComponent: EventListenerWrapper<T>) => void; storeEventListeners: <T extends NativeModuleWithConstants>(nativeComponent: EventListenerWrapper<T>, listeners: EmitterSubscription[]) => void; }; export declare function useSubscriptionManager(eventHandlerRefs: EventHandlerRefs): ComponentSubscriptionManager; export {}; //# sourceMappingURL=useSubscriptionManager.d.ts.map