npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-native-nitro-list

v0.1.3

Published

High-performance list for React Native powered by Nitro

Downloads

388

Readme

🚀 NitroList (RecyclerList)

Nitro-powered RecyclerList for React Native New Architecture

A high-performance, recycler-based list built from the ground up for
Fabric + Nitro (JSI) — no legacy bridge, no hidden overhead.


Preview

NitroList Preview

Blazing-fast • Deterministic • Architecture-correct

Built for teams that care about FPS, memory stability, and correctness.


✨ What is NitroList?

NitroList (public component: RecyclerList) is a FlashList-class virtualized list, designed with a stricter architectural philosophy:

  • New Architecture only (Fabric)
  • Nitro / JSI friendly
  • True view recycling
  • Explicit layout ownership
  • Predictable memory usage

NitroList is not a beginner abstraction.
It is infrastructure-level UI, meant for performance-critical React Native apps.


🧠 Core Design Principles

NitroList enforces strict separation of responsibilities:

| Responsibility | Owner | |----------------|------| | Layout truth | MutableLinearLayout (outside React) | | Windowing | Pure binary-search windowing | | Recycling | Physical cell reuse | | Rendering | React (placement only) | | Observers | Viewability / Prefetch (read-only) |

Key invariants

  • React never owns layout state
  • React never decides what exists
  • Layout is a mutable truth outside React

This separation is the foundation of stable performance.


⚡ Why NitroList over FlatList?

Problems with FlatList

  • Recreates views instead of recycling
  • Layout is implicit and fragile
  • Memory grows with scroll depth
  • Blank cells under pressure
  • Designed for the legacy bridge

NitroList Advantages

  • True view recycling
  • Absolute positioning (no reflow)
  • Deterministic windowing
  • Stable memory footprint
  • No legacy bridge usage
  • Architecture designed for scale

🆚 NitroList vs FlashList

| Feature | FlashList v2 | NitroList | |------|-------------|-----------| | New Architecture | Yes | Yes | | Legacy bridge | No | No | | Recycler model | Yes | Yes | | Layout ownership | Internal | Explicit & controllable | | Nitro / JSI ready | No | Yes | | Deterministic memory | Partial | Strict | | Architecture clarity | Medium | Very high |

Why NitroList Exists

FlashList v2 is excellent — but:

  • Layout is internal and opaque
  • Hard to integrate with Nitro / JSI native logic
  • Less control over measurement and relayout
  • Harder to reason about invariants

NitroList is built for:

  • Native-heavy apps
  • Nitro / JSI pipelines
  • Custom layout engines
  • Predictable performance at scale

🧩 Features

Implemented

  • Recycler-based rendering
  • Binary-search windowing
  • Adaptive render buffer
  • Deterministic layout engine
  • Viewability tracking
  • Prefetch hooks
  • Full TypeScript safety
  • Unit-tested windowing logic

Partially Implemented

  • Dynamic measurement pipeline
  • Incremental relayout

Planned

  • scrollToIndex
  • Sticky headers
  • Masonry layout
  • Native measurement via Nitro
  • Benchmark harness

📦 Installation

npm install react-native-nitro-list

Requires React Native New Architecture
NitroList will not run on the legacy bridge.


🧑‍💻 Usage

Basic Usage

import { RecyclerList } from 'react-native-nitro-list'
import { NitroList } from 'react-native-nitro-list'

export default function App() {
  const data = useMemo(() => generateData(10000), []);
  const heights = useMemo(() => data.map(() => 80), [data]);

  return (
    <NitroList
      data={data}
      containerCrossAxisSize={width}
      itemMainAxisSizes={heights}
      getCellType={() => 'row'}
      renderItem={({ item }) => <YourComponent data={item} />}
    />
  );
}
  • Runs ahead of the visible window
  • Deduplicated
  • Safe and repeatable
  • Observer-only (never mutates layout)

🧪 Testing Philosophy

NitroList focuses on pure logic tests:

  • Windowing correctness
  • Buffer expansion
  • Boundary conditions
  • Off-by-one safety

No flaky UI snapshot tests.
No renderer-dependent assertions.


🧠 When Should You Use NitroList?

Use NitroList if:

  • You are on Fabric / New Architecture
  • You care about memory stability
  • You plan to integrate Nitro / JSI
  • You want explicit control over layout
  • You are building performance-critical screens

Don’t use NitroList if:

  • You need legacy bridge support
  • You want a beginner-friendly abstraction
  • Your lists are small (less than 500 items)
  • FlatList performance is already sufficient

🗺️ Roadmap

  • v0.2 → measurement pipeline
  • v0.3 → scrollToIndex
  • v0.4 → native measurement (Nitro)
  • v1.0 → production-hardened API

🤝 Philosophy

NitroList optimizes for:

  • Correctness over magic
  • Predictability over heuristics
  • Architecture over convenience

This library is for engineers who value control.


📄 License

MIT