UNPKG

react-native-klarna-inapp-sdk

Version:
33 lines 1.49 kB
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'; /** * @deprecated KCO has been migrated to Kustom Mobile SDK and is no longer supported in the react-native-klarna-inapp-sdk. */ export interface KlarnaCheckoutViewProps { style?: ViewStyle; readonly returnUrl: string; readonly onEvent?: (klarnaProductEvent: KlarnaProductEvent) => void; readonly onError?: (error: KlarnaMobileSDKError) => void; } interface KlarnaCheckoutViewState { nativeViewHeight: number; } /** * @deprecated KCO has been migrated to Kustom Mobile SDK and is no longer supported in the react-native-klarna-inapp-sdk. */ export declare class KlarnaCheckoutView extends Component<KlarnaCheckoutViewProps, KlarnaCheckoutViewState> { checkoutViewRef: RefObject<Component<RNKlarnaCheckoutViewProps> & Readonly<NativeMethods>>; private snippet; private isCheckoutViewReady; constructor(props: KlarnaCheckoutViewProps); componentWillUnmount(): void; render(): React.JSX.Element; setSnippet: (snippet: string) => void; suspend: () => void; resume: () => void; } export default KlarnaCheckoutView; //# sourceMappingURL=KlarnaCheckoutView.d.ts.map