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-nativeFirst 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
| Capability | Status |
|---|---|
| Event sending | Supported |
| Batch sending | Partial |
| Consent handling | Supported |
| Identity | Partial |
| Attribution | Partial |
| Deep links | Partial |
| Revenue | Partial |
| Error capture | Partial |
| Session replay | Not applicable |
| Tracing | Planned |
Verification chain
| Link | Status |
|---|---|
| Source | Partial |
| Build | Passed |
| Test | Passed |
| Registry publication | Passed |
| Clean install | Passed |
| Event receipt | Passed |
| Documentation | Passed |
| Super Admin proof | Not 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.