@npm_fluentco/adflow-react-native-sdk
Version:
Fluent Ad Flow Widget
16 lines (13 loc) • 578 B
text/typescript
import type { TurboModule } from 'react-native/Libraries/TurboModule/RCTExport';
import { TurboModuleRegistry } from 'react-native';
export interface Spec extends TurboModule {
/**
* Initializes the SDK with the provided API key and referrer.
*
* @param apiKey - Your SDK API key.
* @param referrer - Identifier for the app or campaign.
* @returns Promise that resolves on success or rejects with an error object.
*/
init(apiKey: string, referrer: string): Promise<void>;
}
export default TurboModuleRegistry.getEnforcing<Spec>('FluentAdFlowModule');