Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Shopify Engineering 8 min read Announcement easyNovice

Instant Performance Upgrade: From FlatList to FlashList

FlashList is Shopify's open-source drop-in replacement for React Native's FlatList. It builds on RecyclerListView, recycling already-allocated cell views instead of creating new ones, and it moves some layout work to native code. The goal is a consistent 60+ FPS and no blank cells, even on low-end Android devices. It uses a small default render buffer (250 px) to cut memory use. Migration is mostly a component rename plus an estimatedItemSize prop, and extras include getItemType for per-type recycling pools, flexible column spans via overrideItemLayout, and built-in blank-cell and FPS metrics.

Related posts

  • FlashList v2: A ground-up rewrite for React Native's New Architecture

    Shopify Engineering mediumAdept

    FlashList v2 is a ground-up rewrite of Shopify's React Native list component that drops the need for item size estimates and all native code by relying on the New Architecture's synchronous layout measurement. It combines progressive rendering (mounting one or two items first, then more as sizes become known), per-item-type size predictions, and correction loops inside useLayoutEffect that fix positions before paint. The same layout map enables pixel-precise scrollToIndex through progressive refinement, resizable horizontal lists that coordinate with parent lists, and a velocity-aware adaptive render buffer that cut blank area during scrolling by up to 50% versus v1. New features include maintainVisibleContentPosition on by default, masonry as a prop with column spans, recycle pool limits, and better web support.

  • Migrating to React Native's New Architecture

    Shopify Engineering mediumAdept

    Shopify moved Shopify Mobile and POS to React Native's New Architecture (Fabric) without pausing weekly releases. The team kept both architectures buildable on every PR, made only minimal code changes, deferred TurboModule conversion of 40+ native modules, and upgraded to the latest React Native first. Common breakages included state batching exposing timing-dependent components, blank screens caused by UIManager-dependent modules, view flattening nulling refs (fixed with collapsable={false} and a Babel plugin), and main-thread module setup deadlocks. A staged Android-first rollout with stability-based rollback tiers yielded 10% faster Android launch, though crash-free sessions and ANRs regressed for weeks after release.

  • Improving Shopify App’s Performance

    Shopify Engineering mediumAdept

    Shopify cut its React Native mobile app's P75 launch time by 44% and screen load times by 59% over 2023, against targets of 2s launch and 500ms critical-screen loads. The fixes fell into three themes. The first was deferring work until it is needed: FlashList-based LazyScrollView and ListSource render only visible content, inlineRequires in the Metro config alone gave a 17% launch gain, and slow native modules were fixed. The second was eliminating unnecessary work: freezing back-stack screens cut navigation time by up to 70%, Restyle allocations were trimmed, and default state batching improved screen loads by about 15%. The third was maximizing cache use by fixing a GraphQL cache bug and pre-warming caches so up to 90% of merchants see cached data first.

  • Five years of React Native at Shopify

    Shopify Engineering easyNovice

    After five years, Shopify has migrated all its mobile apps to React Native, with each team choosing its own migration timing, and reports sub-500ms P75 screen loads, over 99.9% crash-free sessions, and an end to iOS/Android feature-parity work. Hot reloading and TypeScript let engineers move between web and mobile, but native developers and native code remain essential for hardware features, widgets, watch apps and long-running background sync such as Point of Sale offline data. The downsides are flaky debugging, labor-intensive framework upgrades (handled by a rotating group) and heavier reliance on third-party libraries, mitigated with Dependabot and code scanning. Shopify is now extracting shared libraries for identity, monitoring and performance measurement after initially trading consistency for migration speed.

  • Migrating our Largest Mobile App to React Native

    Shopify Engineering mediumAdept

    Shopify is moving its largest native app, Shopify Mobile (300 screens per platform), to React Native through "Iterative Porting" rather than a rewrite. All new features are built in RN while existing screens are ported in parallel. Ports are prioritized with RICE scoring, shipped behind feature flags and monitored for two weeks before the native code is deleted. The team started with the four root screens, which took about four months and needed infrastructure along the way: "Native Routes" so RN can navigate to native screens, deeplinks that open as modals on iOS to avoid mixed RN/native navigation stacks, and safe-area handling inside cells. The porting also exposed and removed business-logic differences between the iOS and Android versions.

The quest for software engineering knowledge.

Look:
Layout: