Skip to content
Feralin

Developers

React Native: quickstart

Install and first-use steps for sending events to Feralin with React Native. Code samples come from the SDK's own README and statuses from the capability record.

Install

@feralin/react-native 0.3.0 is published on npm; install it with your package manager using the command below.

npm install @feralin/react-native

First use

import Feralin from "@feralin/react-native";

await Feralin.initialize({
  projectKey: "pk_live_...", // yalnız x-feralin-project-key başlığında taşınır
  collectUrl: "https://collect.example.com",
  consent: kayitliKarar, // karar yoksa vermeyin
});

Feralin.setConsent({ analytics: true, advertising: false });
const eventId = await Feralin.track("purchase", { amount: 10.5 });
await Feralin.screen("home");
Feralin.identify("kullanici_42"); // PII vermeyin
const result = await Feralin.flush(); // { sent, accepted, rejected, status, batchId }
Feralin.reset(); // çıkış

Code samples are taken as they are from sdks/react-native/README.md; comments inside may be in Turkish. You create the project key in the dashboard.

Capabilities

React Native capability status
CapabilityStatus
Event sendingSupported
Batch sendingPartial
Consent handlingSupported
IdentityPartial
AttributionPartial
Deep linksPartial
RevenuePartial
Error capturePartial
Session replayNot applicable
TracingPlanned

Verification chain

React Native verification chain
LinkStatus
SourcePartial
BuildPassed
TestPassed
Registry publicationPassed
Clean installPassed
Event receiptPassed
DocumentationPassed
Super Admin proofNot started

Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.