react-native-klarna-inapp-sdk
Version:
This library wraps Klarna Mobile SDK and exposes its functionality as React Native components.
35 lines • 1.41 kB
TypeScript
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 RNKlarnaOSMViewProps extends ViewProps {
readonly clientId: string;
readonly placementKey: string;
readonly locale: string;
readonly purchaseAmount: string;
readonly environment: string;
readonly region: string;
readonly theme: string;
readonly backgroundColor: string;
readonly textColor: string;
readonly returnUrl?: 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 onOSMViewReady?: DirectEventHandler<{}>;
}
type KlarnaOSMViewNativeComponentType = HostComponent<RNKlarnaOSMViewProps>;
interface RNKlarnaOSMViewNativeCommands {
render: (viewRef: React.ElementRef<KlarnaOSMViewNativeComponentType>) => void;
}
export declare const Commands: RNKlarnaOSMViewNativeCommands;
declare const _default: KlarnaOSMViewNativeComponentType;
export default _default;
//# sourceMappingURL=KlarnaOSMViewNativeComponent.d.ts.map