Home / React Native Performance Optimization
React Native Performance Optimization Guide
If your app feels slow, stutters on scroll, or burns time during startup, this guide gives you a practical checklist for fixing the biggest React Native performance bottlenecks without rewriting the whole app.
React Native performance comes down to three budgets: how fast the app becomes usable after launch, whether the JS and UI threads can produce a frame every 16.6 ms (8.3 ms on 120 Hz screens), and how much memory you hold while doing it. The fastest way to improve all three is to measure first, fix the single biggest bottleneck, and measure again, rather than sprinkling useMemo everywhere. This guide walks through the tools, the fixes that actually move numbers in production apps, and the mistakes I keep seeing when a team says "our React Native app is slow".
Start with measurement, not guesses
Almost every "React Native slow" complaint I have investigated turned out to have one dominant cause: a list rendering too much, a screen re-rendering on every keystroke, a giant synchronous JSON.parse on startup, or a JS-driven animation fighting the JS thread. You only find that cause by profiling a release build on a real mid-range Android device, as the official React Native performance docs also stress. Debug builds run without Hermes bytecode precompilation and with dev checks enabled, so they are routinely several times slower and will send you chasing problems that do not exist in production.
Planning a mobile app or stuck on one? Message me on WhatsApp or see how I work with app teams.
The tools I use, and what each one answers
| Tool | What it answers | When to reach for it |
|---|---|---|
| React Native DevTools (Profiler tab) | Which components rendered, why, and how long they took | Janky interactions, typing lag, slow screen transitions |
| Perf Monitor (Dev Menu) | Live JS and UI thread FPS | Quick check whether jank is JS-side or native-side |
| Flashlight | Repeatable performance score, FPS, CPU per thread, RAM on Android | Before/after comparisons, CI regression checks |
| Android Studio Profiler | CPU traces, memory allocations, native heap | Native module cost, memory growth, startup traces |
| Xcode Instruments (Time Profiler, Allocations, Hangs) | Main thread hangs, allocations, launch time | iOS-only jank, launch regressions, leaks |
| Hermes sampling profiler | JS function-level CPU time | Expensive JS work on startup or in handlers |
React Native DevTools has been the default debugger since React Native 0.76, and it ships the same React Profiler you know from the web. Turn on "Record why each component rendered" in its settings. That one checkbox has saved me more hours than any library.
The Perf Monitor is the fastest triage. If the UI FPS drops while JS FPS stays near 60, the problem is native: overdraw, huge images, shadows on many views, or layout thrash. If JS FPS drops, the problem is in your React tree or business logic.
For anything you want to prove, use Flashlight on Android. Run the same scenario five or more times, compare averages, and keep the numbers in the pull request. Without numbers, performance work turns into opinion.
If you are chasing memory growth rather than frame drops, the workflow is different; see my guide to finding and fixing React Native memory leaks.
Lists: the most common source of jank
Long lists are where most apps first feel slow. FlatList virtualizes, but its defaults are tuned for correctness, not speed, and it unmounts and remounts rows as you scroll.
Use FlashList for anything non-trivial
FlashList recycles row views instead of destroying them, which drastically cuts the work per scroll. FlashList v2 was rebuilt for the New Architecture, measures items synchronously, and no longer needs estimatedItemSize. Migration is mostly a rename:
import { FlashList } from "@shopify/flash-list";
<FlashList
data={orders}
keyExtractor={(item) => item.id}
getItemType={(item) => item.kind} // separate recycling pools per row type
renderItem={({ item }) => <OrderRow order={item} />}
/>
The production gotcha with recycling: local state in a row leaks into the next item that reuses the view. If a row holds useState for "expanded" or an image loading flag, key that state by item id or reset it when the item changes. I have seen "wrong avatar flashes on scroll" bugs that were exactly this.
If you stay on FlatList, tune it
<FlatList
data={data}
renderItem={renderItem} // stable reference, defined outside or with useCallback
keyExtractor={keyExtractor}
getItemLayout={(_, index) => ({ length: ROW_H, offset: ROW_H * index, index })}
initialNumToRender={10}
maxToRenderPerBatch={10}
windowSize={7} // default 21 keeps ~10 screens mounted each side
removeClippedSubviews // helps most on Android
/>
getItemLayout is the biggest single win when rows have a fixed height, because it skips async measurement. Lowering windowSize reduces memory and render work at the cost of more blank space during very fast flings. Also make every row a React.memo component and never pass inline objects like style={{ marginTop: 8 }} or arrow functions that change every render, or memoization does nothing.
Re-renders: fix the cause, not the symptom
Unnecessary re-renders are cheap individually and expensive in aggregate. The usual causes in React Native apps:
- Context that holds fast-changing values. One
AppContextwith the user, cart, theme and a timer re-renders every consumer whenever anything changes. Split contexts by update frequency or move to a store with selectors. - Store subscriptions that select too much.
const state = useStore()subscribes to everything. Select the exact slice:useStore((s) => s.cart.count). - Server data refetching into new object identities. TanStack Query's structural sharing helps here; hand-rolled fetch-into-state usually does not.
- Controlled text inputs at the top of big screens. Every keystroke re-renders the whole form. Push the input state down into a small component, or use an uncontrolled input with a ref.
React Compiler
React Compiler reached 1.0 in 2025 and works with React Native. It automatically memoizes components and hooks at build time, which removes most hand-written useMemo, useCallback and memo. In Expo projects it is a single flag:
{
"expo": {
"experiments": { "reactCompiler": true }
}
}
Bare React Native projects add babel-plugin-react-compiler to the Babel config. Two cautions from real migrations: the compiler skips components that break the Rules of React (mutating props, reading refs during render), so run the ESLint plugin first and fix what it reports; and it does not fix architectural problems like a context that changes 30 times a second. It makes good code cheaper, it does not make bad data flow fast. State shape matters a lot here, which is why I wrote a separate guide on choosing and structuring React Native state management.
Images
Images are the quiet cause of both jank and memory crashes. A 4000 by 3000 photo decoded into a 100 by 100 thumbnail still costs roughly 48 MB of bitmap memory if it is decoded at full size.
- Use expo-image (works in bare apps too). It provides memory and disk caching, downsampling to the view size,
placeholderblurhash support, andrecyclingKeyfor list recycling. - Ask the server for the right size. A CDN with width parameters beats any client-side trick.
- Prefer WebP or AVIF for remote assets, and keep bundled PNGs small.
- Compress uploads before sending. For photo and video uploads I use react-native-compressor, the library I maintain, because uploading a 12 MB camera original over mobile data is a performance problem your users feel even if your FPS chart looks fine.
Animations and gestures on the UI thread
If an animation reads values in JavaScript every frame, any JS work (a network response being parsed, a re-render) drops frames. Move animation work to the UI thread.
- With the built-in
AnimatedAPI, setuseNativeDriver: true. It supports transforms and opacity, not layout properties likeheight. - For anything gesture-driven or layout-based, use Reanimated with Gesture Handler. Reanimated 4 targets the New Architecture and adds CSS-style transitions and animations; worklets now live in the separate
react-native-workletspackage.
const offset = useSharedValue(0);
const pan = Gesture.Pan().onChange((e) => {
offset.value += e.changeX; // runs on the UI thread, no JS round trip
});
const style = useAnimatedStyle(() => ({ transform: [{ translateX: offset.value }] }));
The common production mistake is calling runOnJS (or scheduleOnRN in newer Worklets) on every frame to update React state. That reintroduces the exact bottleneck you were avoiding. Only cross back to JS at the end of a gesture.
Startup time
Startup is measured as time to interactive: from tap to the first screen that responds to input. The big levers:
Hermes
Hermes is the default engine and compiles your JS to bytecode at build time, so the device skips parsing on launch. If you still run JSC because of an old dependency, moving to Hermes is usually the largest startup win available. Confirm it at runtime with global.HermesInternal != null.
Do less before the first frame
- Lazy-load screens and heavy modules. Expo Router and React Navigation both load screens on demand when configured to; make sure you are not importing every screen from a barrel file at the root.
- Inline requires. Metro's
inlineRequiresdefers module evaluation until first use. The default template enables it; verify yours does, because older upgraded projects often have it off. - Defer non-critical SDKs. Analytics, chat widgets, remote config and crash reporting can usually initialize after the first screen renders. I have seen apps where five SDK
initcalls on the critical path cost more than the app itself. - Avoid synchronous storage reads of large blobs at launch. Read what the first screen needs; hydrate the rest later. MMKV is fast, but parsing a 2 MB persisted store is not.
Measure startup on Android with adb shell am start -W for cold start, and in Xcode with the App Launch template in Instruments.
Bundle size
A smaller bundle loads faster and downloads faster from the stores.
- Inspect what you ship with Expo Atlas (
EXPO_ATLAS=true npx expo export) orreact-native-bundle-visualizerfor bare projects. - Usual offenders: full
lodashinstead of per-method imports,momentwith all locales, icon packs bundling thousands of glyphs, and polyfills you no longer need on Hermes. - On Android, enable R8 minification and resource shrinking for release builds, and ship an Android App Bundle so Play delivers per-ABI binaries. On iOS, Apple's App Thinning handles device slicing automatically.
What the New Architecture changes for performance
The New Architecture is on by default since React Native 0.76, and in 2026 most libraries support it. Its performance effects in practice:
- JSI and TurboModules replace the async bridge, so native calls avoid JSON serialization and can be synchronous. Hot paths that crossed the bridge thousands of times (sensors, storage reads) get much cheaper. My TurboModules guide covers writing your own.
- Fabric renders synchronously when needed, which removes the "layout jump" class of bugs and enables React 18+ concurrent features like
startTransitionto keep input responsive during heavy renders. - Lazy module loading means native modules initialize when first used rather than all at startup.
What it does not do: fix an over-rendering React tree. Teams sometimes upgrade expecting a free speedup and are disappointed because their bottleneck was a 1,000-row ScrollView. Upgrade for correctness and access to modern libraries like FlashList v2 and Reanimated 4, then profile.
A working order of operations
When I am brought in to speed up an app, this is the sequence:
- Reproduce on a release build on a mid-range Android phone; record a Flashlight baseline.
- Fix lists (FlashList, stable
renderItem, memoized rows). - Profile re-renders in React Native DevTools and fix the top three offenders.
- Move animations and gestures to Reanimated.
- Audit images: sizes, caching, formats.
- Trace startup; defer SDKs and lazy-load screens.
- Shrink the bundle; enable R8.
- Re-run Flashlight and compare against the baseline.
If you would rather have someone who has done this across fintech, retail and delivery apps run the audit, you can bring me in for a React Native performance review.
FAQ
Why is my React Native app slow only on Android?
Android devices vary far more in CPU and memory than iPhones, and many of your users are on mid-range hardware with slower single-core performance. Issues like large unoptimized lists, heavy shadows and full-size image decoding show up there first. Always profile on a mid-range Android device, not a flagship.
Is FlashList always better than FlatList?
For long or complex lists, yes in most cases, because view recycling avoids remounting rows. For a short list of ten static items the difference is negligible. The trade-off is that recycled rows can carry stale local state, so you need to reset per-item state correctly.
Does Hermes make every app faster?
Hermes consistently improves startup time and memory use because it ships precompiled bytecode. Raw execution speed for long-running JS can vary by workload, but for typical React Native apps it is the right default. It is enabled by default in current React Native and Expo templates.
Should I wrap every component in React.memo?
No. Memoizing everything adds comparison cost and code noise, and it breaks silently when props are new objects each render. Enable React Compiler to handle memoization automatically, then target manual optimizations only where the profiler shows a real cost.
