Skip to content

echostackapp/echostack-react-native

Repository files navigation

EchoStack React Native SDK

React Native wrapper for EchoStack mobile attribution. Thin TypeScript bridge over native iOS and Android SDKs.

Installation

npm install echostack-react-native

For iOS:

cd ios && pod install

Requirements

  • React Native 0.72+
  • iOS 14.0+ / Android API 21+

Quick Start

import { EchoStack, EventType } from 'echostack-react-native';

// 1. Configure at app startup
EchoStack.configure('es_live_...');

// 2. Track events
await EchoStack.sendEvent(EventType.Purchase, {
  revenue: 29.99,
  currency: 'USD',
});

// 3. Get attribution
const attribution = await EchoStack.getAttributionParams();

API

EchoStack.configure(apiKey: string, options?: ConfigureOptions): void
EchoStack.sendEvent(eventType: string, params?: Record<string, any>): Promise<void>
EchoStack.getEchoStackId(): Promise<string>
EchoStack.getAttributionParams(): Promise<Attribution | null>
EchoStack.isSdkDisabled(): Promise<boolean>
EchoStack.enableAppleAdsAttribution(): Promise<boolean>  // iOS only

License

MIT

About

EchoStack React Native SDK

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors