@zbdpay/ramp-react-native
Version:
React Native wrapper for ZBD Ramp widget
22 lines • 1.31 kB
TypeScript
import type { PostMessageData, RampOptions } from '@zbdpay/ramp-ts';
import type { WebViewProps } from 'react-native-webview';
export interface ZBDRampProps extends RampOptions {
style?: WebViewProps['style'];
webViewProps?: Omit<WebViewProps, 'source' | 'onMessage' | 'style'>;
secret?: string;
}
export interface ZBDRampRef {
sendMessage: (message: PostMessageData) => void;
updateConfig: (config: Partial<RampOptions>) => void;
reload: () => void;
}
export declare const ZBDRamp: import("react").ForwardRefExoticComponent<ZBDRampProps & import("react").RefAttributes<ZBDRampRef>>;
export declare const useZBDRamp: (_options: ZBDRampProps) => {
rampRef: import("react").RefObject<ZBDRampRef>;
sendMessage: (message: PostMessageData) => void;
updateConfig: (config: Partial<RampOptions>) => void;
reload: () => void;
};
export type { RampConfig, RampCallbacks, RampOptions, RampError, RampLog, EnvironmentEnum, PostMessageData, WidgetPostMessageEnum, InitRampSessionConfig, InitRampSessionData, InitRampSessionResponse, RefreshAccessTokenConfig, RefreshAccessTokenData, RefreshAccessTokenResponse, } from '@zbdpay/ramp-ts';
export { QuoteCurrencyEnum, BaseCurrencyEnum, initRampSession, refreshAccessToken } from '@zbdpay/ramp-ts';
//# sourceMappingURL=index.d.ts.map