NitroUI Puts React on the UI Thread

Published
Authors

On December 1, we released NitroUI, an open-source framework for building native iOS and Android apps with React and TypeScript. It is React, but it is not React Native. Your JavaScript runs on the UI thread and renders UIKit and Android views synchronously.

NitroUI is the first framework we built as one team since Margelo joined Callstack in September. It builds on Nitro, the native module system we have developed since 2024. The Nitro ecosystem has a thriving community, with over 4 millions weekly downloads.

What is NitroUI

NitroUI is a next-generation, cross-platform framework for building native mobile apps with React and TypeScript. One codebase runs on iOS and Android, with UIKit and Android views on screen and Swift and Kotlin underneath.

import { useState } from 'react'
import { Text, TextInput, View } from 'nitro-ui-renderer'

export function App() {
  const [note, setNote] = useState('')

  return (
    <View layout={{ flex: 1, padding: 20 }}>
      <Text fontSize={28} fontWeight="bold">Field notes</Text>
      <TextInput
        placeholder="What did you notice?"
        onTextChanged={(change) => setNote(change.text)}
      />
      <Text>{note}</Text>
    </View>
  )
}

You write components, hooks and state as you would in any React codebase, and NitroUI maps them to platform views. React updates native views synchronously, the way platform code does.

Why we built it

We believe in React. It solves the fundamental challenges of UI with a simple language of components. As Callstack and Margelo, we have been contributing to React Native since its early days, and we are members of the React Foundation.

One React codebase is the cheaper and better way to build most mobile apps. Your React engineers keep shipping the product they know, every feature is built once, and iOS and Android stay in parity. That holds as long as you do not compromise on performance. Teams go fully native for different reasons, and we do not think performance should have to be one of them.

The hard part is what happens between layers. A native list needs its next cell, an input needs to format what was just typed, and a gesture needs to follow the finger. We wanted React to take part in those moments directly.

That is why we started from a clean sheet instead of iterating on React Native. NitroUI puts React on the UI thread, where React DOM and native code have always run. A tap arrives, React renders and commits, and the view updates in the same frame.

A clean sheet also let us be opinionated. We add an API only when an app needs it. Fewer layers sit between your component and the platform.

NitroUI is its own framework because its architecture is fundamentally different from React Native's. Running React on the UI thread changes the renderer and the native layer underneath it, so this is a new foundation and not something we could contribute as a change to an existing one. Building it ourselves also gives us room to experiment and ship new ideas quickly. We hope the ones that prove themselves get picked up by the React Native team.

How it works

Rendering stays on UI thread. Your components, React and the native view updates all run on the UI thread. There is no asynchronous render pass to wait for, so native code can call your JavaScript and use the result in the same frame.

Nitro Modules underneath. NitroUI is built on Nitro Modules, the same foundation many popular React Native libraries already use to reach native code. Existing Nitro Modules will work with minor modifications, so the Nitro libraries you depend on come with you.

Static Hermes. Release builds compile React, its reconciler and the NitroUI renderer to native code with Static Hermes and call the layout engine SH Unit via FFI. Your app code loads as Hermes bytecode, which enables fast-refresh and OTA updates. That is a large part of why NitroUI apps launch fast.

Highly performant lists and text input. Rendering is synchronous, so a recycled cell is filled and drawn in the same frame. Long lists scroll without blank rows. Controlled text inputs are always in sync.

A fast feedback loop. Save a file and the change is on the device right away, with no native rebuild. That is the advantage TypeScript keeps over a compiled native stack.

What it means for your team

  • You keep your team. React engineers who know your product keep shipping it.
  • You migrate flow by flow. Components, hooks, state, services and existing native code carry over. Only the parts tied to the React Native host change.
  • You can start with one screen. NitroUI runs inside an existing native app, and full brownfield support is in progress.
  • You own the native projects. Signing, capabilities and release pipelines stay in Xcode and Gradle. The CLI tracks native revisions and points to a migration guide when an upgrade needs one.

React Native is not going anywhere, and neither is our work on it. NitroUI is what we recommend when performance is the constraint and a native rewrite is on the table.

Who builds on NitroUI already?

The first apps and screens showed up within a day of launch.

The team behind T3 Code is testing NitroUI internally as potential replacement.

Catalin Miron built a movie browser with pull-up details, a masked pager with parallax, shared element transitions and a Metal shader effect.

Kiryl Ziusko built Android's native back gesture with an interpolator written in JavaScript that native code calls synchronously.

Hur Ali rebuilt the Hashtags screen of Mastodon's iOS app in NitroUI and left the rest of the Swift app untouched.

Questions from launch day

Is this React Native? No. It is React with its own renderer, runtime and native layer.

Do my Nitro Modules work? Yes, with almost no changes once they are on Nitro V1.

What about library support? We are building out native components and adding them to the SDK. Storage, SQLite, networking and navigation are available today. We also ship skills and docs to help you and agents migrate any module in minutes.

Will it run on the web? Web support is planned. There is no date yet.

How does it compare with React Native on bundle size and memory? Numbers are coming. You can measure your own app today.

Can I adopt it without a rewrite? Yes. Start with one screen in an existing app.

Try it

bunx create-nitro-ui@latest MyApp
cd MyApp
bun run start

Read the docs at nitro-ui.com and star the repo at github.com/margelo/nitro-ui.

If you run an app where performance is the constraint, talk to us. We will show you how NitroUI works under the hood and what a migration would look like.

Insights

Learn more about Open Source

cover

Aug 7Article

Visualizing Open Source Licenses to Analyze Compliance and Reduce Legal Risk

Discover how license-kit visualize maps and analyzes your dependency graph, helping you spot license issues, duplicates, and restrictive packages with interactive views, stats, and AI-powered summaries.

cover

Mar 26Podcast

How Definitely Typed Changed TypeScript Forever

Discover the story behind Definitely Typed with its creator, Boris Yankov, and learn how it became essential for type-safe JavaScript in the TypeScript ecosystem.

cover

Oct 14Article

Introducing the OMH Cloud Storage Module

Discover the OMH Cloud Storage Module. This open-source solution simplifies cloud storage integration for React Native apps.

cover

Jul 12Article

Introduction to the React Native OMH Maps Library

Discover how the React Native OMH Maps library simplifies map integration with cross-platform compatibility, ease of use, and customization options.

cover

Apr 22Podcast

Behind the Scenes of React Native 0.74 Release

Join the release crew members to find out what new features and improvements React Native 0.74 brings to the cross-platform development world.

cover

Apr 27Podcast

Callstack OSS Update

April 2023 Callstack OSS Update: RFC for Expo Config Plugins, Re.Pack & Paper news.

cover

Dec 6Article

React Native Paper 5.0 - What’s New?

React Native Paper 5.0 is here! Dive into the latest updates and improvements.

cover

Feb 8Article

Stripe React Native: the Most Common Questions - Tipsi Migration Guide, Part 5

Check out the list of the most common questions about Stripe react Native Library prepared by Jakub Kłobus, software engineer at Callstack.

cover

Feb 6Article

Stripe React Native Migration Function by Function - Tipsi Migration Guide, Part 3

In the third part of the Tipsi Migration Guide we describe the Stripe React Native migration function by function.

cover

Mar 19Tutorial

The Hard Way vs. The React Native AI SDK Way: Stop Writing Custom Modules for Every Model

Learn how React Native AI uses a unified provider model to switch between cloud and on-device LLMs without rewriting application logic, enabling reliable AI experiences online and offline.

cover

Mar 12Tutorial

Build Smarter Apps: Tool Calling & AI Orchestration Explained

Learn how on-device models in React Native can call tools, interact with external APIs, and return structured outputs you can use directly in application logic.

cover

Mar 5Tutorial

MLC LLM + React Native: On-Device AI Without the Pain

Learn how to run third-party on-device LLMs in React Native using MLC LLM. Choose your models, run them efficiently across platforms, and keep a unified JavaScript API with React Native AI.

cover

Feb 24Tutorial

Intelligent Fallbacks with Apple Intelligence in React Native

Learn how to use Apple’s built-in Foundation Models in React Native apps, reduce memory usage, and enable fast, fully on-device AI with React Native AI Apple.

cover

Feb 10Tutorial

What Is the React Native AI SDK? A Complete Intro & Quickstart

Learn why on-device AI matters for React Native apps, how local LLMs behave offline, and what problems React Native AI is designed to solve from day one.

cover

Jan 29Tutorial

Implementing an Android TurboModule with Kotlin

Learn how to implement a React Native TurboModule on Android, from the TypeScript spec and Codegen to the Kotlin implementation and package registration.

cover

Jan 19Tutorial

Working with Different Threads in Swift TurboModules

Learn how JavaScript, native module, background, and main threads interact in React Native TurboModules, and how to use GCD queues to run async work safely in Swift.

cover

Jan 9Tutorial

How to Add Type-Safe Constants to Swift TurboModules

Learn how to expose typed, immutable constants from a Swift TurboModule using Codegen, and get full end-to-end type safety between native and JavaScript.

cover

Dec 30Tutorial

Adding Event Emitters to Your TurboModule in Swift

Learn how to emit native events from a Swift TurboModule and subscribe to them in JavaScript, including proper memory management and Codegen integration.

Writing a Swift TurboModule in React Native

Dec 22Tutorial

Writing Your First TurboModule in Swift

Learn how to build a fully working TurboModule in Swift, integrate it with Codegen, and bridge it through Objective‑C inside an Expo app.