React Native SDK
@vortexauth/native
pnpm add @vortexauth/native
VortexAnalyticsClient extends the core client with React Native
behaviour:
- AsyncStorage-backed queue and anonymous id.
- Flush when the app backgrounds, so events are not stuck in the queue when the OS suspends the app.
- Autocapture: sessions driven by AppState, a wrapped global error handler (your existing handler still runs, fatal errors flush immediately), and a one-line React Navigation hook for screens:
<NavigationContainer onStateChange={analytics.navigationTracker()}>
- Deep-link attribution: a
vx_linktoken on the launch URL or a warm deep link is captured and stamped on subsequent events.
import { VortexAnalyticsClient } from '@vortexauth/native';
const analytics = new VortexAnalyticsClient({ dsn: VORTEX_DSN });
The package also carries the auth client, billing hooks, and a paywall component; native iOS and Android SDKs live in the same repository.