CookbookDebug undefined properties in React Native with Sentry Logs
Use Sentry Logs to determine whether an undefined property is a first-render timing issue in your React Native app or actually missing from your backend API response.
Read moreSentry’s React Native crash reporting and tracing simplify debugging— no more guessing at settings, digging through logs, or running the same scenario over and over in your emulator.
How to install the React Native SDK
We had been using Firebase's Crashlytics to get insights into app crashes that our users are facing. Crashlytics, however, does not support source maps from React Native, so it was always difficult trying to understand exactly where a crash originated from and what change might've introduced it. Sentry makes it easy to identify new crashes and where they are coming from, as well as how stable the app is across versions.
Yes, Sentry has support for react-native builds that use the hermes engine. Hermes is a small and lightweight JavaScript engine optimized for running React Native on Android. It helps improve app performance and also exposes ways to analyze the performance of the JavaScript that it runs. Read more about hermes support.
Yes. The RAM bundle format is an approach to packaging React Native apps that optimizes your app's startup time. With RAM bundles, it is possible to load to memory only those modules that are needed for specific functionality, and only when needed. All the existing RAM bundle formats are explained in detail in the Metro Bundler documentation.
Yes. Sentry does support the New Architecture, including all the Pillars: Fabric, Turbo Modules, and Codegen. To access this support, migrate to the latest React Native SDK. Learn more about Sentry's support for the New Architecture.
Crashlytics is a lightweight, mobile-only tool that only reports critical crash rates for Android. It does not offer deep context into issues with suspect commits, codeowners, and automatic non-fatal error capture; holistic monitoring from frontend to backend; or collaboration tools like issue triage or assignment. Unlike Sentry, Crashlytics does not offer support for React Native out-of-the-box.
Sentry is a fullstack error and performance monitoring solution that provides actionable insights into crashes across devices and app versions as well as powerful collaboration tools, helping teams troubleshoot and resolve issues faster. Unlike Crashlytics, Sentry provides out-of-the-box support for React Native.
Yes. Sentry's React Native SDK works out of the box with Expo applications, giving you full crash reporting and performance monitoring for apps built and shipped with Expo Application Services (EAS). You get complete, de-minified stack traces that pinpoint the exact line of broken code, native crash context across the JavaScript and native layers, and Session Replay to see exactly what your users experienced before an issue occurred. Because Sentry ties errors to specific releases, you can track app stability across versions and catch regressions before they reach more users. Sentry also integrates directly with the EAS dashboard, so you can view crash reports and Session Replays for each deployment right alongside your builds, with one-click access to the full stack trace and debugging context in Sentry. Learn more about Sentry for Expo and the EAS dashboard integration.
Yes. Sentry Logs lets you send, view, and query structured logs from your application alongside your errors and traces. Because logs sit next to the error and the trace that produced them, you get the granular context — retries, API failures, internal state — that spans and stack traces alone can miss, without switching tools.
Learn more about Logs in Sentry.
Seer is Sentry's AI debugging agent. It reads the full context Sentry already has — the error, its stack trace, the surrounding trace, logs, and profiles — to find the root cause of an issue and propose a fix. Seer can open a pull request with that fix or hand the work to an external coding agent.