UNPKG

@qonversion/react-native-sdk

Version:

Qonversion provides full in-app purchases infrastructure, so you do not need to build your own server for receipt validation. Implement in-app subscriptions, validate user receipts, check subscription status, and provide access to your app features and co

21 lines (16 loc) 798 B
import type { TurboModule } from 'react-native'; import { TurboModuleRegistry } from 'react-native'; import type { EventEmitter } from 'react-native/Libraries/Types/CodegenTypes'; import type { QNoCodeAction, QNoCodesError, QNoCodeScreenInfo } from '../Mapper'; export type NoCodeEvent = { name: string; payload: QNoCodeAction | QNoCodesError | QNoCodeScreenInfo | undefined; }; export interface Spec extends TurboModule { initialize(projectKey: string, source: string, version: string): void; setScreenPresentationConfig(configData: Object, contextKey?: string): Promise<boolean>; showScreen(contextKey: string): Promise<boolean>; close(): Promise<boolean>; readonly onNoCodeEvent: EventEmitter<NoCodeEvent>; } export default TurboModuleRegistry.getEnforcing<Spec>('RNNoCodes');