UNPKG

@adyen/react-native

Version:

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

16 lines 760 B
/** * Context for embedded components to subscribe/unsubscribe to MessageBus events. */ export interface AdyenComponentContextType { /** Subscribe an embedded view to MessageBus events by its viewId (reactTag) */ subscribe: (viewId: string) => void; /** Unsubscribe an embedded view from MessageBus events by its viewId (reactTag) */ unsubscribe: (viewId: string) => void; } export declare const AdyenComponentContext: import("react").Context<AdyenComponentContextType | null>; /** * Hook to access the AdyenComponentContext for subscribing/unsubscribing to MessageBus events. * Must be used within an AdyenCheckout provider. */ export declare const useComponent: () => AdyenComponentContextType; //# sourceMappingURL=useComponent.d.ts.map