Skip to the page

Performance: measure, then fix · mid

Measuring performance: release builds, Perf Monitor and DevTools

You find jank by measuring in a release-like build: the Perf Monitor shows JS and UI frame rates separately, React Native DevTools (which replaced Flipper and Chrome debugging) shows JS CPU, React renders, network and memory, and Android Studio/Perfetto and Xcode Instruments show the native side.

The notes

What you must know

  • Dev mode is much slower (extra checks, no minification). Profile a release build, or Android's debugOptimized build type (0.82), which keeps JS debugging with optimized native code (about 60 fps vs about 20 fps in debug in the RN sample).
  • Perf Monitor (Dev Menu): low JS FPS = too much JS (re-renders, heavy logic, console.log). Low UI FPS while JS FPS is fine = native cost (overdraw, huge images, too many views, shadows).
  • React Native DevTools (stable since 0.76, open with "j" in the Metro terminal): Console, Sources and breakpoints, Memory heap snapshots, React Components and Profiler. Network and Performance panels and a desktop app came in 0.83.
  • Network panel limits: no WebSocket frames, no response mocking, no throttling.
  • History interviewers still ask about: Flipper's native integration was deprecated in 0.73 and removed from new projects in 0.74; Chrome "Debug JS Remotely" was removed in 0.79.
  • Native profilers: Android Studio Profiler (export traces to Perfetto; the standalone systrace tool is gone) and Xcode Instruments (Time Profiler, Allocations, Leaks).
  • Production: Sentry or Firebase Performance, Android vitals (slow and frozen frames, ANR rate), and Web Performance APIs (PerformanceObserver works in production builds since 0.83).
  • console.log costs JS time even in release bundles; strip it with babel-plugin-transform-remove-console.

The red pen

Common traps: mistake → fix

  • Mistake: "I profiled in debug and it is slow"

    Fix: debug numbers mislead; use release or debugOptimized.

  • Mistake: "I debug with Flipper / Chrome"

    Fix: Flipper was removed from the template in 0.74 and Chrome remote debugging in 0.79; use React Native DevTools.

  • Mistake: "Low UI FPS means my React code is slow"

    Fix: if JS FPS is fine, look at native rendering costs first.

Easy to hard

Questions interviewers ask, easy to hard

  1. What do you use to debug and profile a React Native app today? What happened to Flipper?
  2. Why must you test performance in a release build? Name three dev-only costs.
  3. JS FPS is fine but UI FPS drops. Where do you look?
  4. An animation stutters only on a mid-range Android phone. Walk me through diagnosing it.
  5. How do you track performance in production and stop it regressing?

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview