NitroUI: React on the UI Thread, Not React Native

NitroUI React framework code running on a native mobile app

NitroUI is a new open-source framework that lets teams write native iOS and Android apps in React and TypeScript. Callstack released it on December 1. It resembles React Native from the outside, yet app code executes on the UI thread and draws UIKit and Android views in lockstep.

It is the first framework Callstack has built as one team since Margelo joined the company in September. It sits on Nitro, the native module system the two teams have developed since 2024, which the company says has more than 4 million weekly downloads.

What it is

You write components, hooks and state the way you would in any React project. the framework maps them to platform views, with Swift and Kotlin underneath. One codebase covers both platforms. A starter component imports Text, TextInput and View from its renderer package and uses ordinary React state.

Views update the way they do in platform code. When a tap lands, React renders, commits and refreshes the screen before the frame ends.

cover
Image: Callstack

Why a new framework

Callstack’s argument is that one shared React codebase costs less and works better for most mobile apps, since React engineers keep shipping and both platforms get each feature together. The catch has been performance, and the team says it shouldn’t be the reason anyone goes fully native.

The trouble sits between layers. Lists need their next cell, inputs reformat as you type, and gestures must track a finger. The team wanted React involved in those moments directly.

Moving React onto the UI thread alters both the renderer and the native layer under it, which Callstack says rules out submitting it to React Native as a patch. It chose a clean sheet and says it adds an API only when an app needs one. It hopes the React Native team adopts whichever ideas prove themselves.

How it works

Your components, React and the native view updates share the UI thread. Nothing waits on an asynchronous render pass, so native code can call into your JavaScript and use what comes back within the frame.

Under the hood, NitroUI uses Nitro Modules, so existing Nitro libraries should work with minor changes. Release builds compile React, its reconciler and its renderer to native code with Static Hermes, and reach the SH Unit layout engine through FFI. App code loads as Hermes bytecode, which allows fast refresh and over-the-air updates. Callstack credits this for fast launches.

Rendering is synchronous, so a recycled list cell gets its content and is painted together, and long lists scroll with no empty rows. Controlled text inputs never fall out of step. Saving a file shows the change on the device without a native rebuild.

What it means for teams

Callstack pitches NitroUI as a migration path. Hooks, state, services and current native code all move across. Only the pieces bound to the React Native host need rewriting. You can start with a single screen inside an existing native app, though full brownfield support is still in progress. Xcode and Gradle keep control of signing, capabilities and releases. The CLI follows native revisions and links a migration guide when an upgrade calls for one.

The company says React Native isn’t going anywhere. It recommends NitroUI for apps where speed is the limiting factor and a full native rewrite is under consideration.

Early adopters

Within a day of launch, the first apps and screens appeared.

  • The team behind T3 Code is trying it internally as a possible replacement.
  • Catalin Miron made a movie browser featuring pull-up details, a masked pager with parallax, shared element transitions and a Metal shader effect.
  • Kiryl Ziusko recreated Android’s back gesture using a JavaScript interpolator that native code invokes synchronously.
  • Hur Ali redid the Hashtags screen in Mastodon’s iOS app with the framework while the remaining Swift code stayed as is.

Open questions

NitroUI isn’t React Native. It has its own renderer, runtime and native layer. Nitro Modules need next to no changes once they run on Nitro V1.

Library coverage is still growing. Storage, SQLite, networking and navigation already work, and Callstack is adding more native components to the SDK. It also ships skills and docs meant to help developers and coding agents migrate a module in minutes.

Web support is planned with no date. Bundle size and memory comparisons with React Native are promised but not published, so measuring your own app is the only way to compare for now.

Trying it out

You can create a project with bunx create-nitro-ui@latest MyApp. Documentation is at nitro-ui.com, and the code is in the margelo/nitro-ui repository on GitHub. Watch for those size and memory numbers and for full brownfield support, since they will decide how easily existing apps can adopt it.

Source: Callstack

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.