React Native

Lyrelog for React Native

A thin TurboModule over the Swift and Android SDKs: JavaScript errors and render errors, native crashes, screens from React Navigation, and everything the native SDKs do underneath.

import { AppRegistry } from "react-native";
import { Lyrelog } from "@lyrelog/react-native";
import App from "./src/App";

Lyrelog.init({
  // ingest-only: it can append events, never read them
  apiKey: "lyr_ing_...",
});

AppRegistry.registerComponent("main", () => App);

Version 1.0.0. React Native 0.80+ with the New Architecture, React 19; apps on iOS 16+ and Android 7.0+.

What it does on React Native

Start it and these come with it. Where the platform can't tell by itself, it's a call or a few lines, all in the guide.

  • On its ownCrashes and uncaught errorsJS fatal and render errors, unhandled rejections, native crashes
  • On its ownHangsHangs on iOS, ANRs on Android 11+
  • On its ownScreensWith React Navigation, from trackNavigation
  • On its ownSessionsFrom the native SDKs, 30 minutes idle
  • On its ownEnvironment, told apartThe native SDK's rule on each platform
  • On its ownEvents wait when offlineOn disk, in the native SDK's queue
  • On its ownVerified eventsApp Attest on iOS, Key Attestation on Android

React Native, in practice

What the guide says to keep in mind on this platform.

  • Release stacks read as your source: withLyrelog in metro.config.js, then upload the source map.
  • Non-fatal errors are capped at 10 a minute, the same one once every 10 seconds.
  • <LyrelogErrorBoundary> reports what a boundary catches.
  • The React Native guide

See it with your own app's events

Sign up with GitHub, Google or Apple. Your organization starts on Free; move it to Pro whenever you want.