Install in React Native

One TypeScript file downloaded from the API — no npm dependency.

Platform guidesPro
Mobile SDKs are available on Pro and above.

The mobile SDK ships as a single file served from our API rather than an npm package, so it never conflicts with your dependency tree and you can read every line of it before shipping.

bash
curl -o src/lib/deepsync.ts https://ingest.deepsync.in/sdk/mobile/deepsync-react-native.ts
1. Download the SDK into your project
tsx
// 2. Initialize once at app start (App.tsx)
import { DeepSync } from "./lib/deepsync";

DeepSync.init({
  projectId: "YOUR_PROJECT_ID",
  ingestUrl: "https://ingest.deepsync.in",
});

// 3. Track screens and user identity where relevant
DeepSync.trackScreenView("Checkout");
DeepSync.identify(userId, { plan: "pro" });
Unlike the web SDK, mobile screen views are not automatic — there's no History API to patch. Call trackScreenView from your navigation listener so mobile analytics has screens to report on.

Related

Still have a question?

Support is included on every plan, including Free. Tell us what you're trying to do and we'll point you at the right page — or fix the docs.

Contact support