RORK LABJP
MAX — Rork Max generates native Swift apps for iPhone, iPad, Apple Watch, Apple TV, Vision Pro, and iMessagePUBLISH — Rork Max ships 2-click App Store publishing and runs $200/monthRN — The standard Rork builds native iOS/Android apps with React Native (Expo) — the quicker path to a working appPRICE — Rork is free to start, with paid plans from $25/monthFUND — Rork raised $2.8M from a16z; the platform now sees 743k+ monthly visits with 85% growthFLOW — Describe your app in plain English and Rork generates deployable code that can use the camera, notifications, and moreMAX — Rork Max generates native Swift apps for iPhone, iPad, Apple Watch, Apple TV, Vision Pro, and iMessagePUBLISH — Rork Max ships 2-click App Store publishing and runs $200/monthRN — The standard Rork builds native iOS/Android apps with React Native (Expo) — the quicker path to a working appPRICE — Rork is free to start, with paid plans from $25/monthFUND — Rork raised $2.8M from a16z; the platform now sees 743k+ monthly visits with 85% growthFLOW — Describe your app in plain English and Rork generates deployable code that can use the camera, notifications, and more
Articles/Dev Tools
Dev Tools/2026-06-19Intermediate

When Rork-Built Lists Stutter: Designing Image Caching and Prefetch

A FlatList from Rork starts stuttering once the images pile up. Here is how I restore smoothness with expo-image caching, recyclingKey, prefetch, and a move to FlashList, with the device numbers I measured.

Rork425React Native168expo-image4FlatList7Performance17

Premium Article

When I first ran an image gallery built with Rork on a real device, the first few cells scrolled smoothly, but the stutter grew more obvious the longer I kept scrolling. The Simulator never showed it; it only surfaced on a slightly older phone in my hand.

The cause was easy to guess. Each cell was re-fetching its image from the network and decoding it again every time it appeared. The FlatList Rork generates is clean and readable, but it does not design for the load that arrives once the image count grows.

As an indie developer who has built image-heavy screens like wallpaper apps many times for the App Store, I want to record here the full path from the list Rork emitted to smooth scrolling again, with the numbers I measured on device.

Why scrolling stutters

The real nature of stutter is usually a fight over the main thread. The screen redraws 60 times a second (120 on some devices), and when a large image decode cuts in between those frames, one frame misses its deadline and the view jumps.

The first job is to isolate the cause. I suspect things in this order. First, is the image re-fetched from the network every time. Second, even with a cache, is the in-memory decoded image being reused. Third, is an unnecessary re-render happening when the cell is recycled. Clear those three in order and most stutter settles.

What freshly generated code tends to do

Rork's output often looks like this.

import { FlatList, Image } from "react-native";
 
export function Gallery({ items }) {
  return (
    <FlatList
      data={items}
      keyExtractor={(item) => item.id}
      renderItem={({ item }) => (
        <Image source={{ uri: item.url }} style={{ width: 180, height: 180 }} />
      )}
    />
  );
}

This works, but the built-in Image has weak cache control and tends to decode again every time a cell is recycled. Past a few dozen images it surfaces as scroll hitching. On my own device, this implementation made memory usage climb in steps throughout the scroll, and on the older phone the screen started responding a beat late.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
A step-by-step way to isolate FlatList stutter from the angle of image decoding and memory
Concrete expo-image cache settings plus recyclingKey to stop repeated decoding
A prefetch design that loads ahead of the visible range, and the line at which to move to FlashList
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Dev Tools2026-05-22
Why FlatList's onEndReached Fires Multiple Times — and How to Stop It
After wiring up infinite scroll in a Rork-generated FlatList, you may notice the same paginated request hitting your API two or three times in a row. Here's why onEndReached fires more often than you expect and how to add a two-layer defense that survives production.
Dev Tools2026-05-02
When Your FlatList Starts Stuttering: Migrating Rork Apps to FlashList v2
When your Rork app's long lists start feeling sluggish, migrating to FlashList v2 makes scrolling dramatically smoother. Here is the practical migration path, taking advantage of v2's removal of estimatedItemSize.
Dev Tools2026-06-12
Your Rork App's 'Documents & Data' Keeps Growing — Taming expo-image's Disk Cache
My wallpaper app's binary was 40 MB, yet 'Documents & Data' had ballooned to 2.4 GB. Here is how I diagnosed expo-image's unbounded disk cache and fixed it with cachePolicy tuning, thumbnail URLs, and generational cache clearing.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →