UNPKG

react-native-klarna-inapp-sdk

Version:

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

45 lines 1.85 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'; export interface RNKlarnaExpressCheckoutViewProps extends ViewProps { readonly sessionType: string; readonly clientId: string; readonly clientToken: string; readonly locale: string; readonly environment: string; readonly region: string; readonly returnUrl: string; readonly theme: string; readonly shape: string; readonly buttonStyle: string; readonly autoFinalize: boolean; readonly collectShippingAddress: boolean; readonly sessionData: string; readonly onAuthorized: DirectEventHandler<Readonly<{ readonly authorizationResponse: Readonly<{ readonly showForm: boolean; readonly approved: boolean; readonly finalizedRequired: boolean; readonly clientToken: string; readonly authorizationToken: string; readonly sessionId: string; readonly collectedShippingAddress: string; readonly merchantReference1: string; readonly merchantReference2: string; }>; }>>; readonly onError: DirectEventHandler<Readonly<{ readonly error: Readonly<{ readonly isFatal: boolean; readonly message: string; readonly name: string; }>; }>>; readonly onResized: DirectEventHandler<Readonly<{ readonly height: string; }>>; } type KlarnaExpressCheckoutViewNativeComponentType = HostComponent<RNKlarnaExpressCheckoutViewProps>; declare const _default: KlarnaExpressCheckoutViewNativeComponentType; export default _default; //# sourceMappingURL=KlarnaExpressCheckoutViewNativeComponent.d.ts.map