Mobile and desktop apps · Skill
Speed up React Native
optimise-react-native-performance
Speeds up a React Native UI that drops frames - long lists, extra renders, a heavy JS thread, and a slow cold start. Use when a FlatList is janky, scrolling stutters, startup is slow, or memory keeps climbing.
Works with: Any AI Not yet model-tested; testing Jan 2027
Paste it into ChatGPT, Claude, Gemini or any AI chat, then tell it about your project. How it works
Install in Claude Code, Cursor or Codex (optional)
Only for AI coding tools that read skill folders. Run one line in a terminal, in your project folder. It downloads this skill's text files from TheSkillVault and nothing else; you can read them first with “View raw SKILL.md”.
Claude Code (all your projects)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/optimise-react-native-performance/raw' -o ~/'.claude/skills/optimise-react-native-performance/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/optimise-react-native-performance/files/LICENSE.txt' -o ~/'.claude/skills/optimise-react-native-performance/LICENSE.txt'Cursor (this project)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/optimise-react-native-performance/raw' -o '.cursor/skills/optimise-react-native-performance/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/optimise-react-native-performance/files/LICENSE.txt' -o '.cursor/skills/optimise-react-native-performance/LICENSE.txt'Codex and other Agent Skills tools (this project)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/optimise-react-native-performance/raw' -o '.agents/skills/optimise-react-native-performance/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/optimise-react-native-performance/files/LICENSE.txt' -o '.agents/skills/optimise-react-native-performance/LICENSE.txt'
Or connect the whole library over MCP
Add TheSkillVault to Cursor or add this to your app's MCP settings (read-only; help):
{
"mcpServers": {
"theskillvault": {
"url": "https://theskillvault.ai/mcp"
}
}
}Guessing at memo and style tweaks rarely clears a stutter. Measure the slow path, then change the single thing the trace points at.
When to use
- A long list drops frames while scrolling.
- The JS thread stays busy and taps feel late.
- Cold start takes long enough that people notice.
When not to use
- The screen is a website in the browser. Web speed is a different checklist.
- The project does not run yet. Get a build on a simulator first.
- You only need tabs or a stack. That is a different skill.
Steps
- Reproduce the stutter on a release build, not only in dev. Dev mode is slower and will mislead you.
- Record a trace. Use the React Native performance monitor, or Xcode Instruments / Android Studio, and note whether the JS thread or the UI thread is the one that is busy.
- For a long list, use FlashList when you can, or a FlatList with
keyExtractorand a stablerenderItem. Do not create a new function for every row on each render. - Give the list a row height it can trust (
estimatedItemSizeon FlashList, orgetItemLayouton FlatList) so it does not measure every cell. - Move images off the JS thread. Use a native image component and sizes that match the slot, not full-resolution photos in a thumbnail.
- Keep animations on the UI thread (Reanimated or a native driver). A JS
setIntervalthat moves a view will drop frames. - For a slow cold start, look at the JS bundle size and work done while modules import. Defer screens that are not on the first route.
- Compare the trace after the change. Keep the change only if the frame cost or the start cost actually moved.
Gotchas
- Do not log tokens, passwords or personal data while profiling.
console.loginside a list row will wreck a release trace. Remove it.- An inline object style or an inline arrow created during render looks cheap and still re-renders every row.
- This guide is adapted from Callstack's skill. It is not official React Native support, and it does not promise a frame rate.
Portability
The list and thread split is the same on iOS and Android. If you use Flutter or SwiftUI, profile on the device and virtualise long lists there too. The component names differ.
Done when
- A release build shows the list scrolling without an obvious hitch, or you have a trace that names the remaining cost.
- Row renderers are stable, and startup work that is not needed for the first screen is deferred.
Example prompt
"My React Native order list stutters when I scroll. Switch it to FlashList and stop the row component from re-rendering on every pass."
---
Adapted from "react-native-best-practices" in callstackincubator/agent-skills (MIT, Copyright (c) 2026 Callstack Incubator). See LICENSE.txt.
Bundled files
Licence
Adapted from Callstack Incubator (agent-skills, react-native-best-practices) (Copyright (c) 2026 Callstack Incubator), MIT License. Adapted by TheSkillVault: rewritten as a short order (measure, lists, renders, JS thread, startup); dropped the priority table and reference catalogue; added gotchas and done-when. Independent how-to, not a Callstack product manual.
Licence: MIT License. Attribution when you reuse it: Based on work by Callstack Incubator (agent-skills, react-native-best-practices) (Copyright (c) 2026 Callstack Incubator, MIT License), https://github.com/callstackincubator/agent-skills/tree/59e9d17446a248b21d86f078fcd0bd2d36db1ca4/skills/react-native-best-practices; adapted by TheSkillVault, https://theskillvault.ai