Install the React Native SDK
This guide walks you through installing and configuring the MarkTag React Native SDK in your project.
Installation
1. Install the package
From your project root, install the SDK using your preferred package manager:
bash
npm install @markopolo_ai_inc/mobile-sdkbash
yarn add @markopolo_ai_inc/mobile-sdk2. Import the SDK
Import the MarkTag SDK in your application code:
javascript
import * as MarkTag from "@markopolo_ai_inc/mobile-sdk";3. Initialize the SDK
Add the following to your app entry file (App.js or App.tsx), before any code that logs events:
javascript
MarkTag.init({ tag: 'your-domain.com' });Replace 'your-domain.com' with the tag/domain value from your MarkTag project settings.
INFO
Default events (like on the web) are not supported in the mobile SDK.