Product Benefits Pricing Guides Docs About Contact us Try it out
Performance

PostHog React Native Render Crash Tracking

PostHog React Native render crash tracking: SDK 4.81.2 reports missed fatal JS errors via native crash capture. Check both packages are updated.

· 3 min read

A React render error can take down a whole screen, or the whole app, and still slip past a JavaScript error handler. The user sees a white screen or a sudden exit. Your dashboard shows nothing, so the crash-free figure stays flattering and the problem keeps happening.

posthog-react-native 4.81.2 changes this. Fatal JavaScript crashes that the JS error handler missed, such as React render errors on iOS, are now reported through native crash capture. There is a catch: you need to update both posthog-react-native and @posthog/react-native-plugin. Updating only one leaves the gap open. The previous release, 4.81.1, also fixed fatal crashes being sent without a stack trace when a frame had no chunk ID.

Data Points to Track

  • exception_source: whether the error came from the JS handler or native crash capture
  • fatal: whether the app terminated
  • platform: iOS or Android
  • screen_name: the screen showing when it failed
  • component_name: the component in the stack, if available
  • stack_trace_present: whether the event has a usable stack
  • app_version: release the user was on
  • react_native_sdk_version: version of posthog-react-native
  • plugin_version: version of @posthog/react-native-plugin
  • crash_free_sessions: share of sessions without a fatal error

Setup Steps

  1. Check versions. Confirm posthog-react-native is 4.81.2 or later.
  2. Update the plugin @posthog/react-native-plugin to a matching release.
  3. Rebuild native code. On iOS, reinstall pods and create a fresh build.
  4. Force a render error in a test build, for example by throwing inside a component.
  5. Relaunch the app and confirm the fatal exception appears with a stack trace.
  6. Record a baseline of fatal errors for the week before the upgrade.
  7. Add a breakdown by exception source and platform.
  8. Add a check that flags builds where the plugin and SDK versions differ.

Actionable Insights

Expect your fatal error count to rise after the upgrade, especially on iOS. That is not a regression. It is crashes you were missing. Keep the baseline so you can explain the step change to stakeholders.

Group render crashes by screen. If a single screen produces most of them, an unguarded null value or a bad API response shape is usually behind it. Add an error boundary there and track how many users reach the fallback instead.

Compare crash-free sessions before and after. Your honest number may drop. A drop caused by better measurement is a good outcome, because now you can improve the real figure.

Check the share of events with a stack trace. If it is low, look at source map handling and the chunk ID issue fixed in 4.81.1.

Common Pitfalls

Do not update only one package. The plugin and SDK are a pair.

Do not rely on Android results to judge iOS. The gap described affects iOS render errors specifically.

Do not skip a native rebuild. A JavaScript-only update will not load the new native code.

Why Product Teams Should Care

A white screen is a lost session and often a lost customer. Seeing these crashes lets you prioritise fixes by users affected, not by guesswork.