To React or Not to React? Expo Exact vs. NitroUI

Featuring
Kewin Wereszczyński
Software Engineer
@
Callstack
Szymon Chmal
Software Developer
@
Callstack

NitroUI is out, bringing synchronous native rendering to the React and TypeScript code developers already know.

React runs directly on the UI thread, where it can fill list cells and update text inputs before the next frame appears. Expo Exact takes a different route to building native apps, introducing its own UI language and a development workflow built around coding agents. Put them alongside each other, and the differences reach well beyond syntax.

Both frameworks reconsider how an application gets from a description of its interface to something a person can use. NitroUI changes the machinery underneath React. Exact takes control of the language, compilation, and verification loop. In the recording, we explore those differences through practical examples, looking at performance, familiarity, and how much responsibility developers can hand to an agent.

What happens when React runs on the UI thread?

NitroUI is a separate framework from React Native, with its own renderer and native layer. It keeps React’s components, hooks, and state while running React and native view updates synchronously on the main thread.

That changes the coordination between JavaScript and native UI work. React Native normally runs application JavaScript on a separate thread, so a native component may need to wait for JavaScript to produce the content it needs. NitroUI lets native code call JavaScript and use the result immediately.

A scrolling list makes this distinction tangible. Native lists recycle cells as they move through the viewport, assigning new content to an existing cell. With NitroUI, the native host can ask React to render that content before displaying the cell. Its list implementation uses UICollectionView on iOS and RecyclerView on Android.

The same coordination applies to controlled text inputs. Formatting a value, such as applying an input mask, involves the native control and JavaScript agreeing on what should appear. Synchronous updates let that work happen before the next frame, reducing the opportunity for a visible mismatch between what someone types and what React displays.

For a React developer, the code remains recognizable. The consequences of putting that code on the main thread take more adjustment.

NitroUI list performance: when rendering blocks the UI

To push NitroUI’s rendering model during the stream, we used a list of 2,000 items, each with an image, title, description, and action button. A coding agent generated the screen, then added an artificial 60-millisecond rendering delay to every twentieth item. When we increased the delay to one second, scrolling paused while each slow row rendered. The rows stayed filled, but tapping another tab did not switch screens while JavaScript occupied the UI thread.

Synchronous rendering gives React direct participation in native UI work, and that comes with the native UI’s time constraints. At 60 Hz, the entire frame has roughly 16.7 milliseconds available. At 120 Hz, that drops to about 8.3 milliseconds. A row renderer doing tens of milliseconds of work has already exceeded either budget.

In an application, that pressure might come from filtering a large dataset on every keystroke or repeatedly calculating values inside each row. Moving the calculation into a promise does not move it onto another thread, and setTimeout only postpones when the same blocking work runs.

Some computations can be broken into smaller pieces that yield between chunks. Others belong in native code that explicitly performs the work on a background thread, exposed through a Nitro Module. Calling an expensive native function synchronously on the main thread would still block the interface.

Because JavaScript and native UI updates share the main thread, expensive computations can interrupt scrolling and delay taps. Keeping row rendering cheap and moving substantial computation to a background thread helps keep the interface responsive.

Expo Exact starts with a different language

Expo Exact replaces the React view layer with Contract, a compiled language for describing an application’s interface, state, and interactions. Exact compiles those declarations into a plan that its platform runtimes execute across web, mobile, and desktop applications.

The language may look unfamiliar at first, although many of its concepts have recognizable counterparts. A component owns state; derive expresses values calculated from that state; an action changes it. Resources and mutations describe typed data reads and writes, while the view declares how the interface uses those values.

A to-do app, for example, can describe its draft text, filtered items, and button actions in Contract. A separate TypeScript data module can own the stored list and answer requests from the interface. Network access, persistence, and substantial computation belong on that side of the separation, as the Contract guide for humans explains.

This gives Exact control over the operations available in the view layer and how they translate to each platform. Developers adopting it learn a new syntax, along with a different boundary between UI behavior and application logic.

An agent changing the interface works in Contract, while network access, persistence, and substantial computation belong in a TypeScript or Rust data module. Contract has defined syntax, types, and compiler checks, so Exact can validate the agent’s UI declarations before turning them into a running interface.

For the list we built live, the agent generated a Contract file containing the item shape, the list’s initial state, and the layout for each row. An action button opened a dialog in the running app. During rapid scrolling, some titles and descriptions intermittently disappeared.

How NitroUI and Expo Exact work with AI coding agents

NitroUI gives coding agents an existing vocabulary. React patterns and TypeScript are familiar territory, while newly created projects include skills pointing to the SDK documentation. The agent building the list could work from those project instructions without a separate manual setup of documentation.

Exact puts more of the development loop inside the framework. Its agent driver provides operations for inspecting the UI tree, taking screenshots, interacting with controls, and reading application state across supported hosts. A controllable clock makes time-dependent behavior repeatable during driven tests.

An agent can use that environment to check the application after changing it. The framework gives it a consistent way to interact with what it built, including on platforms with different native implementations.

Automatic verification also needs coordination with manual work. An agent launching simulators and operating controls can interrupt someone trying to explore the same screen. Developers need to be able to direct when those checks run and understand which behaviors they cover.

These approaches address different parts of agent-assisted development. NitroUI carries familiar programming patterns into a new renderer. Exact supplies a more prescribed environment for implementation and verification. In both cases, the quality of the result depends on the instructions and feedback available to the agent, alongside the developer’s judgment about what the application should do.

Moving from React Native to NitroUI

React teams can build on their knowledge of components, hooks, and state when working with NitroUI. Existing TypeScript application logic can often carry over as well, provided it has no dependency on React Native or Expo APIs.

The host-specific parts require closer attention. Navigation, layout properties, component props, and native integrations may need changes, so a migration can extend beyond switching imports. The NitroUI migration guide recommends starting with one screen and comparing the same flow in both applications.

Nitro Modules provide a route for bringing native functionality across. NitroUI uses Nitro v1 in its bare environment, with generated bindings connecting TypeScript specifications to native implementations. Existing modules need to be compatible with that environment, and each required integration deserves checking against the native module documentation.

Build tooling deserves attention too. An application binary interface, or ABI, governs how compiled components interact. Compatibility at that level affects the reuse of precompiled native code, making it a separate consideration from whether familiar React source code can move across.

A framework can feel comfortable within minutes while still requiring work around the dependencies a product needs to ship.

How much of the development model should change?

NitroUI makes a case for exploring native performance while retaining React and TypeScript. Its synchronous rendering model gives React closer coordination with native controls, and the list experiment shows the corresponding need to keep main-thread work within budget.

Exact asks for a broader change. Its contract language and verification tools offer a structured way to build across platforms, with more of the workflow designed around agents. Adopting it also means becoming comfortable with how that language expresses behavior and how the generated application executes it.

For either framework, a representative product flow will reveal more than an isolated scrolling demo. A screen with realistic data transformations and a required native integration exposes the costs that matter to an actual application. It also gives the team something concrete to inspect when generated code behaves unexpectedly.

NitroUI’s release opens up room to improve native rendering while preserving familiar React code. Exact explores how much a framework can define when it owns both the UI language and the agent’s working environment. Developers still need to understand the behavior those choices produce, especially when they are responsible for the app that ships.

Insights

Learn more about Developer Experience

Re.Pack Cut Expensify's Warm Production Bundling by 82%

Dec 2Article

Re.Pack Cut Expensify's Warm Production Bundling by 82%

Expensify's move from Metro to Re.Pack cut warm production bundling from 11 seconds to 2 and brought web and native onto shared Rspack and React Compiler tooling. See how the team handled compatibility and rolled out the change.

cover

May 5Article

Codex Ambassador: Q1 Recap Across 5 Cities

A short recap of Codex events in Berlin, Wroclaw, Warsaw, Sopot, and Miami, plus what we learned from each format and where we want to go next.

cover

Feb 5Live Stream

Storybook Explained: From Basics to Advanced Workflows

Core Storybook concepts, stories and args, interaction testing, and how Storybook works in React Native projects.

cover

Jan 29Article

Announcing AI SDK Profiler for React Native

Announcing the AI SDK Profiler plugin for Rozenite DevTools. Capture OpenTelemetry spans from the Vercel AI SDK and inspect AI requests across on-device and cloud providers.

cover

Nov 28Talk

How I Hacked React Native DevTools (And Built a Plugin Framework)

Learn how React Native DevTools work under the hood, and how to inject custom plugins with clean hooks and no forks.

cover

Sep 16Talk

How I Hacked React Native DevTools (And Built a Plugin Framework)

Learn how React Native DevTools work under the hood, and how to inject custom plugins with clean hooks and no forks.

cover

Jul 28Article

Introducing Rozenite: A Plugin Framework for React Native DevTools

Build custom debugging panels inside React Native DevTools with Rozenite: a modular, TypeScript-ready plugin framework with full device-scoped support.

cover

Feb 12Article

How to Easily Create Native Libraries With Nitro and Turbo Modules

Learn how to optimize React Native performance with Turbo and Nitro Modules. Ditch the legacy bridge and master modern native module development.

cover

Dec 4Podcast

Radon IDE: Better Developer Experience for React Native Teams

Find out how Radon IDE can help increase team velocity and rid you of the common React Native app development pain points.

cover

Sep 19Podcast

Exploring Bun: Jarred Sumner on Hyperfast JavaScript Toolkit

Is Bun the future of React Native package management? Join us as we talk with Jarred Sumner, the creator of this lightning-fast JavaScript toolkit.

cover

Sep 11Podcast

Vim: from Zero to Hero

Discover the power of Vim, the legendary text editor, as we explore its origins, standout features, and practical tips to boost your coding efficiency.

cover

May 15Article

Add-Ons for Web Browsers With React

At times you may need to create an add-on to use a web browser more effectively. Find out how to build one with React.

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.