React Native wrapper for EchoStack mobile attribution. Thin TypeScript bridge over native iOS and Android SDKs.
npm install echostack-react-nativeFor iOS:
cd ios && pod install- React Native 0.72+
- iOS 14.0+ / Android API 21+
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();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 onlyMIT