Skip to main content
The Zeotap React Native SDK (zeo-collect) is a JavaScript wrapper around the native iOS and Android SDKs. Install once, configure both platforms with a single options object, and call the same tracking methods from your React Native code regardless of platform.

How it works

  1. Install the zeo-collect npm package.
  2. Pull in the native iOS and Android dependencies for each platform.
  3. Initialize the package from your app’s entry point with both android_write_key and ios_write_key.
  4. Import and call tracking functions from any component.
  • setEventProperties / setEventNameProperties — named events with optional properties
  • setInstantEventProperties / setInstantEventNameProperties — events that bypass the batch queue
  • setPageProperties — screen-level context attached to subsequent events
  • setUserProperties — current snapshot of user attributes
  • setUserIdentities / unSetUserIdentities — identifiers used to stitch events to profiles
  • setConsent — user consent signals
  • pauseCollection / resumeCollection — temporarily suspend event capture
New Architecture (Fabric / TurboModules): if you’ve enabled the new architecture, use zeo-collect version 1.3.0 or higher with the required new-architecture configurations. Contact support@zeotap.com if you hit issues on a higher version.

Prerequisites

  • Access to a Zeotap CDP instance
  • An Android Source and an iOS Source in the CDP (each provides its own write_key)
  • React Native 0.65+ recommended
See Create an Android SDK Source and Create an iOS SDK Source for how to obtain both write_keys.

Explore the docs

Quick Start

Install the package, set up both native SDKs, send your first event.

Configuration

All package options — consent, hashing, batching, country.

API Reference

Every exported function, parameter, and example.

Consent Resolution

Default opt-in, GDPR TCF, and custom consent flows.

Examples

Component patterns, identity handling, brand consent.

FAQ

Troubleshooting, linking, accepted identifiers.
Last modified on June 22, 2026