Installation
Add tracern-sdk to your React Native app
Install the SDK and optional packages for richer metadata and offline queueing.
bash
npm install tracern-sdk
# Recommended companions
npm install react-native-device-info @react-native-async-storage/async-storageInitialize early
Call TraceRN.init in index.js before AppRegistry.registerComponent.
javascript
import { TraceRN } from "tracern-sdk";
TraceRN.init({
apiKey: "trn_live_xxxxxxxx",
environment: __DEV__ ? "dev" : "production",
});
TraceRN.log("App started");Last updated · TraceRN docs