UNPKG

react-native-klarna-inapp-sdk

Version:

This library wraps Klarna Mobile SDK and exposes its functionality as React Native components.

34 lines 1.55 kB
import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'; import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes'; import type { HostComponent } from 'react-native'; import React from 'react'; export interface RNKlarnaCheckoutViewProps extends ViewProps { readonly returnUrl: string; readonly onEvent: DirectEventHandler<Readonly<{ readonly productEvent: Readonly<{ readonly action: string; readonly params: string; }>; }>>; readonly onError: DirectEventHandler<Readonly<{ readonly error: Readonly<{ readonly isFatal: boolean; readonly message: string; readonly name: string; }>; }>>; readonly onResized: DirectEventHandler<Readonly<{ readonly height: string; }>>; readonly onCheckoutViewReady?: DirectEventHandler<{}>; } type KlarnaCheckoutViewNativeComponentType = HostComponent<RNKlarnaCheckoutViewProps>; interface RNKlarnaCheckoutViewNativeCommands { setSnippet: (viewRef: React.ElementRef<KlarnaCheckoutViewNativeComponentType>, snippet: string) => void; suspend: (viewRef: React.ElementRef<KlarnaCheckoutViewNativeComponentType>) => void; resume: (viewRef: React.ElementRef<KlarnaCheckoutViewNativeComponentType>) => void; } export declare const Commands: RNKlarnaCheckoutViewNativeCommands; declare const _default: KlarnaCheckoutViewNativeComponentType; export default _default; //# sourceMappingURL=KlarnaCheckoutViewNativeComponent.d.ts.map