Skip to content
AetherDocs0.1.0-alpha.0

React Native SDK

One JavaScript API across iOS and Android.

Package@aether/react-native
Statusalpha
TransportPOST /v1/batch

Install

● bash
npm install @aether/react-native

Initialize

● typescript
import Aether from '@aether/react-native';

Aether.init({ tenantId: 'your-tenant-id', appId: 'your-app-id' });
Aether.consent.grant(['analytics']);
Aether.screen('Home');

What it collects

DataEventsConsent purpose
Page and screen viewspage / screenanalytics
Custom eventstrackanalytics
Sessionsstart, heartbeat, endanalytics
Identity hintsidentify · userId, hashed email, walletpersonalization
Commerceproduct, cart, checkout, order, paymentanalytics
Journeysstart, checkpoint, pause, resume, complete, abandonanalytics
Device contextOS, app version, locale, timezoneanalytics
Marketing contextUTM parameters, referrer, campaignmarketing

How it collects

  1. 01Wait for consentNothing is captured until the purpose for an event is granted.
  2. 02Queue locallyEvents buffer in memory and async storage.
  3. 03Batch and sendFlushes on size, interval, or app background.
  4. 04Retry safelyIdempotent retries dedupe on tenant_id:event_id:schema_version for 24 h.
+Does it need native linking?
Autolinking handles it on current React Native versions.