react-native-klarna-inapp-sdk
Version:
This library wraps Klarna Mobile SDK and exposes its functionality as React Native components.
26 lines • 1.19 kB
TypeScript
import React, { Component, type RefObject } from 'react';
import type { NativeMethods, ViewStyle } from 'react-native';
import type { KlarnaProductEvent } from './types/common/KlarnaProductEvent';
import type { KlarnaMobileSDKError } from './types/common/KlarnaMobileSDKError';
import { type RNKlarnaCheckoutViewProps } from './specs/KlarnaCheckoutViewNativeComponent';
export interface KlarnaCheckoutViewProps {
style?: ViewStyle;
readonly returnUrl: string;
readonly onEvent?: (klarnaProductEvent: KlarnaProductEvent) => void;
readonly onError?: (error: KlarnaMobileSDKError) => void;
}
interface KlarnaCheckoutViewState {
nativeViewHeight: number;
}
export declare class KlarnaCheckoutView extends Component<KlarnaCheckoutViewProps, KlarnaCheckoutViewState> {
checkoutViewRef: RefObject<Component<RNKlarnaCheckoutViewProps> & Readonly<NativeMethods>>;
private snippet;
private isCheckoutViewReady;
constructor(props: KlarnaCheckoutViewProps);
render(): React.JSX.Element;
setSnippet: (snippet: string) => void;
suspend: () => void;
resume: () => void;
}
export default KlarnaCheckoutView;
//# sourceMappingURL=KlarnaCheckoutView.d.ts.map