Skip to main content
The Klaritics React Native SDK follows the same conventions as the Web and Android SDKs. It wraps the native layer so you can initialize and log events from JavaScript while the SDK handles platform-specific details. Packaging and installation follow standard React Native conventions.

Installation

Install the SDK using your preferred React Native package manager:
Follow any additional linking steps provided by the package documentation for your React Native version.

Initialization

Import the SDK and initialize it with your app_id and server_host before logging any events:
The SDK will not initialize until both values are provided.

Logging events

User and session management

Important naming note

The client-facing class is Klaritics. Do not use KlariticsSDK, KlariticsCore, or any other variant in your application code.