The React Native SDK exposes a top-level initialize function that configures the underlying native SDK on both iOS and Android. Call it before invoking any other method.
Methods
initialize
function initialize(appId: string): Promise<void>;
Initializes the native SDK for the supplied App ID. The promise resolves once the native module has been configured.
Parameters:
| Parameter | Type | Required | Description |
|---|
appId | string | Yes | Your App ID from the Integrations page. Empty strings are rejected. |
Example:
import * as Clickterm from '@clickterm/react-native-sdk';
await Clickterm.initialize('app_abc123def456');
Calling show() or showAcceptedContent() before initialize() resolves will reject with an ERR_CLICKTERM_NOT_INITIALIZED error.
Never expose your App Key in client-side code. The App Key is used
only for backend verification calls. The client SDK uses only the App ID.
Store the App Key safely — it won’t display again after creation, but can be
regenerated. Regenerating the key requires updating your backend configuration.