React Native

To integrate Segment's React Native SDK with a custom API host:

import { createClient, AnalyticsProvider } from '@segment/analytics-react-native';

const segmentClient = createClient({
  writeKey: '<EVEFAN_SOURCE_WRITE_KEY>',
  proxy: '<EVEFAN_WORKER_HOST>/v1/b',
});

Here's their official guide.

Last updated