The short version
Measure on a release build first. Development mode is slower on purpose. Then open the Perf Monitor and see which frame rate drops, the JS one or the UI one. Each fix below says how to confirm it is your cause before you change anything. Hermes and the New Architecture are on by default, so fixes 9 and 10 are checks, not settings.
Measure first
Use production mode. The React Native docs say JavaScript thread performance suffers greatly in dev mode, because more work happens at runtime to give warnings and error messages, and that you should always test performance in release builds (Performance overview). The Expo docs say the same about development mode (Development and production modes).
| How you run it | Mode | Good to know |
|---|---|---|
npx expo start | Development mode | Default. Slower, with extra runtime warnings. |
npx expo start --no-dev --minify | Production JS on a dev server | __DEV__ is false and the code is minified. |
Release build on a device | Production | The only place the Hermes bytecode benefit shows up. |
Expo Go runs your project from the dev server, which starts in development mode by default. The Expo Go vs development build post covers when to switch. For a release build of a React Native CLI project, the Hermes page gives:
# Android npm run android -- --mode="release" # iOS npm run ios -- --mode="Release"
Read the two frame rates. Open the Dev Menu and toggle Show Perf Monitor. You get a JS frame rate and a UI frame rate. The docs give each frame about 16.67 ms of work. Their example: setting state on a root component that re-renders expensive subtrees can take 200 ms and drop 12 frames. If JS is unresponsive, JS-driven animations freeze and a TouchableOpacity cannot react to touches. The UI thread keeps scrolling a ScrollView even when JS is locked up.
Then use a profiler. The React Native DevTools docs describe a Performance panel, which records one timeline of JavaScript execution, React Performance tracks, network events and custom User Timings, and a React Profiler, which shows component render and commit timing as a flame graph. The docs say the Network and Performance panels are available since React Native 0.83. For native work, the Profiling page names Instruments on iOS, and the Android Studio Profiler with Perfetto on Android. It says to switch development mode off first.
The ten at a glance
| # | Fix | What you see | Confirm with |
|---|---|---|---|
| 1 | Remove console calls from release builds | A release build is slower on the JS thread than it should be, or a logging library is installed. | Search your code and node_modules for console calls. Compare the JS frame rate in the Perf Monitor with and without them. |
| 2 | Tune the FlatList | Blank areas when you scroll, or a low JS frame rate while scrolling. | Scroll fast in a release build with the Perf Monitor open. |
| 3 | Move heavy JS work out of the transition frame | Slow navigator transitions, or a touch that answers late. | JS frame rate drops during the transition. The Performance panel in React Native DevTools shows a long JS block. |
| 4 | Run animations off the JS thread | An animation freezes or stutters while JavaScript is busy. | The animation stutters exactly when the JS frame rate drops. |
| 5 | Keep press handlers light | A button does not show its pressed state until a heavy action finishes. | The highlight appears only after onPress returns. |
| 6 | Stop needless re-renders | Rows re-render when nothing about them changed. | Highlight updates in the React Native DevTools Components panel, or record a React Profiler session. |
| 7 | Load images with expo-image | Choppy image lists, high memory, or images that reload. | Profile memory with Xcode Instruments or the Android Studio Profiler. |
| 8 | Check the bundle and the startup path | Slow start, or a large web bundle. | Open the bundle in Expo Atlas. |
| 9 | Confirm Hermes is running | You expected the Hermes startup benefit and do not see it. | Check the HermesInternal global in a release build. |
| 10 | Check library support for the New Architecture | A library crashes or warns after an upgrade. | Run npx expo-doctor@latest. |
1. Remove console calls from release builds
What you see. The JS frame rate is lower in a release build than you expect, and the app logs a lot or uses a logging library.
How to confirm. Search your code and your dependencies for console. calls. The performance page says that in a bundled app these statements can cause a big bottleneck on the JavaScript thread, and that this includes calls from debugging libraries such as redux-logger. Record the JS frame rate in a release build, strip the calls, and record it again.
The fix.
The React Native docs suggest a Babel plugin. The Expo minify guide gives a setting that needs no extra package. It uses the Terser option drop_console, in metro.config.js:
const { getDefaultConfig } = require('expo/metro-config');
const config = getDefaultConfig(__dirname);
config.transformer.minifierConfig = {
compress: {
drop_console: true,
},
};
module.exports = config;To keep errors and warnings, pass an array of console types to remove instead of true:
config.transformer.minifierConfig = {
compress: {
// Removes console.log and console.info. Keeps warn and error.
drop_console: ['log', 'info'],
},
};The React Native page recommends stripping them even if your own code has none, because a third-party library might still call them. In production mode, console logs do not appear in the Expo CLI terminal, and the development mode page says to use the native device logs instead. Sources: Performance overview and Minify JavaScript.
2. Tune the FlatList
What you see. Blank areas appear when you scroll fast, or the JS frame rate falls while you scroll a long list.
How to confirm. Scroll quickly in a release build with the Perf Monitor open. The FlatList docs explain that content renders asynchronously off screen to limit memory, so fast scrolling can briefly show blank content. That is a trade-off you can adjust, not a bug.
The fix.
Start with the rows, then the layout. The Optimizing FlatList configuration page lists these: use basic, light components in list items, use memo(), use getItemLayout when every item has the same height, set a keyExtractor, and avoid anonymous functions in renderItem by defining it once with useCallback. The performance page says that implementing getItemLayout skips measuring rendered items. The FlatList docs call it a performance boost for lists of several hundred items.
import { memo, useCallback } from 'react';
import { FlatList, Text, View } from 'react-native';
const ITEM_HEIGHT = 64;
const Row = memo(
({ title }: { title: string }) => (
<View style={{ height: ITEM_HEIGHT }}>
<Text>{title}</Text>
</View>
),
(prevProps, nextProps) => prevProps.title === nextProps.title,
);
export function Items({ items }: { items: { id: string; title: string }[] }) {
// Defined once, not recreated on every render.
const renderItem = useCallback(
({ item }: { item: { id: string; title: string } }) => <Row title={item.title} />,
[],
);
return (
<FlatList
data={items}
renderItem={renderItem}
keyExtractor={(item) => item.id}
getItemLayout={(data, index) => ({
length: ITEM_HEIGHT,
offset: ITEM_HEIGHT * index,
index,
})}
/>
);
}Only then touch the window settings. These are the defaults, so setting them to the same value does nothing:
| Prop | Default | Trade-off |
|---|---|---|
initialNumToRender | 10 | Size it to fill the screen. Too low gives blank areas. |
maxToRenderPerBatch | 10 | Higher means fewer blank areas but longer JS runs per batch. |
updateCellsBatchingPeriod | 50 ms | Delay between batches. Rare batches can blank, frequent ones cost responsiveness. |
windowSize | 21 | Measured in viewport heights. Larger uses more memory, smaller shows more blanks. |
removeClippedSubviews | true on Android, false elsewhere | Can cause missing content, mainly on iOS, with complex transforms or absolute positioning. |
If a tuned FlatList still shows blank cells, the performance page names FlashList and Legend List as third-party options. Neither the React Native docs nor the FlashList docs give a benchmark. FlashList is a change of component name:
import { FlashList } from '@shopify/flash-list';
const DATA = [{ title: 'First Item' }, { title: 'Second Item' }];
const MyList = () => (
<FlashList
data={DATA}
renderItem={({ item }) => <Text>{item.title}</Text>}
/>
);The FlashList usage page adds four rules. Remove explicit key props from the item components. Memoize the props you pass in. Use getItemType for lists with different item types. Test in release mode, because dev mode can look slower. It also says size estimates are no longer needed or read in version 2, so you do not add estimatedItemSize. The full prop-by-prop story is in our FlatList guide.
3. Move heavy JS work out of the transition frame
What you see. Navigator transitions are slow, or a tap answers late right after a screen opens.
How to confirm. The JS frame rate drops during the transition. For a closer look, record the transition in the DevTools Performance panel and look for one long block of JavaScript. The performance page calls slow navigator transitions the most common sign of too much JS work at the same time.
The fix.
The docs suggest deferring work until the JS thread is idle, for example with requestIdleCallback. If delaying work during an animation costs too much, they suggest LayoutAnimation, which uses Core Animation and is not affected by JS thread or main thread frame drops. It only suits fire-and-forget animations. If the animation must be interruptible, use Animated. The docs also note that native stack navigators, such as @react-navigation/native-stack, run their transitions on the native main thread, so JS frame drops do not interrupt them. Source: Performance overview.
4. Run animations off the JS thread
What you see. An animation freezes or stutters whenever the app is busy with something else.
How to confirm. Watch the JS frame rate while the animation plays. If the stutter lines up with JS drops, the animation is being driven from JavaScript. The performance page says the Animated API calculates each keyframe on demand on the JavaScript thread unless you set useNativeDriver: true.
The fix.
Two ways to fix it. First, keep Animated and turn on the native driver. The Animations page says the animation is then sent to native before it starts, and the JS thread can be blocked without affecting it.
Animated.timing(this.state.animatedValue, {
toValue: 1,
duration: 500,
useNativeDriver: true,
}).start();The limits from the same page: only non-layout properties can be animated this way (transform and opacity work, flexbox and position do not), and one value works with only one driver.
Second, use Reanimated, which its docs describe as running animations and interactions on the UI thread. The sample below is the one from the first animation page:
import { Button, View } from 'react-native';
import Animated, { useSharedValue, withSpring } from 'react-native-reanimated';
export default function App() {
const width = useSharedValue(100);
const handlePress = () => {
width.value = withSpring(Math.random() * 100 + 50);
};
return (
<View style={{ flex: 1, alignItems: 'center' }}>
<Animated.View style={{ width, height: 100, backgroundColor: 'violet' }} />
<Button onPress={handlePress} title="Click me" />
</View>
);
}Install react-native-reanimated and react-native-worklets, then run npx expo prebuild, as the getting started page says. Reanimated 4 works only with the New Architecture. The page says the Expo starter template has included the Worklets Babel plugin since SDK 50, so there is no manual setup. A full walkthrough is in our Reanimated guide, and one real use is in the skeleton loader post.
One more case from the performance page: on iOS, changing the width or height of an Image re-crops and rescales it from the original each time, which is expensive for large images. Animate with transform: [{scale}] instead.
5. Keep press handlers light
What you see. A button does not show its pressed state until a heavy action finishes.
How to confirm. The highlight or opacity change appears only after onPress returns. The performance page says this happens when onPress sets state that causes a heavy re-render and drops frames.
The fix.
The docs’ fix is to wrap the action in requestAnimationFrame:
function handleOnPress() {
requestAnimationFrame(() => {
doExpensiveAction();
});
}Source: Performance overview.
6. Stop needless re-renders
What you see. Rows or screens re-render when nothing about them changed, and the JS frame rate drops during updates.
How to confirm. In React Native DevTools, open the Components panel and turn on Highlight updates when components render in View Settings. Or record a session in the React Profiler and read the flame graph. Both are described in the DevTools docs.
The fix.
Two options. The manual one is the memo() wrapper and the stable renderItem from fix 2. The FlatList docs describe memo() as re-rendering a component only when its props change.
The automatic one is the React Compiler. The Expo guide says it memoizes components and hooks, and that you can remove useCallback, useMemo and React.memo in favour of it. It says Babel is configured automatically in SDK 54 and later, and you turn on the experiment in your app config:
{
"expo": {
"experiments": {
"reactCompiler": true
}
}
}The guide also gives a healthcheck, and says to restart Metro after Babel changes:
npx react-compiler-healthcheck@latest npx expo start --clear
Caveats from the guide: it does not optimize class components, it runs only on your own code and not on node_modules, and you can opt a file or component out with the 'use no memo' directive. To confirm it is working, look for the “Memo” badge that the DevTools Components panel shows on components optimized by the compiler. Source: Expo React Compiler.
7. Load images with expo-image
What you see. Image lists scroll badly, memory climbs, or images flash and reload.
How to confirm. Profile memory with Xcode Instruments on iOS or the Android Studio Profiler on Android, as the Profiling page describes.
The fix.
The expo-image reference installs with npx expo install expo-image. The settings that matter for speed:
cachePolicydefaults to'disk'. You do not need to set it to get disk caching. Choose'memory-disk'when you want a memory cache in front of the disk. The docs warn that'memory'alone may be purged quickly.allowDownscalingdefaults totrue, so the image is downscaled to the view size. The docs say turning it off can hurt performance with large assets.recyclingKeyis recommended for recycling lists such as FlashList. Changing it resets the view before the new image renders.placeholderwith a blurhash or thumbhash shows while the image loads.Image.prefetchtakes URLs and a cache policy. It resolves tofalseat once if any image fails.- With the
useImagehook, setmaxWidthormaxHeight. The docs warn that large images without size limits may crash from memory use.
import { Image } from 'expo-image';
<Image
source={item.uri}
recyclingKey={item.id}
placeholder={{ blurhash }}
contentFit="cover"
transition={{ duration: 300, skipOnCacheHit: 'all' }}
/>The page calls the component fast but gives no benchmark, so measure your own list before and after the swap.
8. Check the bundle and the startup path
What you see. The app starts slowly, or the web bundle is large.
How to confirm. Open the bundle in Expo Atlas. The bundle analysis guide gives these commands:
The fix.
EXPO_ATLAS=true npx expo export npx expo-atlas .expo/atlas.jsonl
Atlas shows what each module is, and what imports it. The guide warns that atlas.jsonl contains original and transformed source and inlined EXPO_PUBLIC_ values, so share it only with people you trust. It also says bundle size matters most on web, where bytecode is not precompiled.
Remove or replace the large dependencies Atlas shows that you do not need. Production exports are minified with Terser by default, as the minify guide says. To try the minified bundle on a dev server, run npx expo start --no-dev --minify.
One correction to common advice. Async routes split the bundle by route, but the Expo Router docs say they are stable on web from SDK 58 and enabled by default there. On iOS and Android they are experimental, off by default, and supported only in development. Native production builds load routes synchronously. So on native, Expo Router does not lazy-load your routes for you in a production build.
9. Confirm Hermes is running
What you see. You expected Hermes to improve startup time, memory or app size and you do not see it.
How to confirm. Hermes is used by default in React Native, so you do not turn it on. The Hermes page gives this check:
The fix.
const isHermes = () => !!global.HermesInternal;
The page adds a caution. With a non-standard way of loading the JS bundle, HermesInternal can exist without the precompiled bytecode in use. Confirm you are using the .hbc file and benchmark before and after. Compare in a release build, since that is where JavaScript is compiled to bytecode at build time.
The Expo guide says Hermes is the default engine. The jsEngine key in the app config is only for choosing another engine for a platform. If an old tutorial tells you to add "jsEngine": "hermes", you can leave it out. Source: Using Hermes in Expo.
10. Check library support for the New Architecture
What you see. A library crashes or logs warnings after you upgrade Expo or React Native.
How to confirm. Run npx expo-doctor@latest. The Expo docs say it checks your dependencies against React Native Directory and flags packages that are unmaintained or incompatible with the New Architecture.
The fix.
The New Architecture is a default, not a setting. Upgrade or replace what the check flags. The docs name @stripe/react-native 0.45.0 or later as one example of a library that needs a specific version.
| Default | React Native | Expo |
|---|---|---|
| Hermes | Used by default. No setting needed. | The default engine. jsEngine is only for opting out per platform. |
| New Architecture | Default since React Native 0.76. Opt out with newArchEnabled=false in gradle.properties, or RCT_NEW_ARCH_ENABLED set to 0 in the Podfile. | Default in SDK 53 and 54. Always on from SDK 55, and newArchEnabled is ignored. |
Expect no automatic speed-up. The React Native docs say turning it on may not immediately improve performance or user experience. Expo Go supports only the New Architecture. Sources: React Native New Architecture and Expo New Architecture guide. For the version numbers, see the Expo SDK versions table.
Where ShipNative fits
ShipNative turns a plain-English description into a React Native and Expo app. You preview it in the browser and in Expo Go, change it by chat, and download the code as a standard Expo project. The dev server behind Expo Go starts in development mode by default, so treat what you see there as a first look. Use the measuring steps above on a release build of the downloaded project before you judge speed. Building apps needs a paid plan, Pro at $29 a month or Max at $49.
