Old architecture vs. new architecturePart 13 of 14

The render pipeline

One setState through render, commit and mount, thread by thread

AdvancedVerified on React Native 0.88Updated 6 December 2026

Read first: Fabric, The event loop

The big idea#

Every UI change in React Native goes through three phases. Render decides what the UI should be, commit calculates where everything goes, and mount makes it real on screen. Knowing which phase is slow tells you which fix to use.

Concepts#

One setState, end to end#

A setState through Fabric

JS thread
UI thread
Render
Commit
Mount
Event
Render
Commit
Effects
Diff
Touch
Mount
Draw

Lanes: JS thread, UI thread. In time order: Touch (UI thread); Event (JS thread); Render (JS thread, Render phase); Commit (JS thread, Commit phase); Effects (JS thread, Commit phase); Diff (JS thread, Mount phase); Mount (UI thread, Mount phase); Draw (UI thread, Mount phase). Arrows: Touch to Event; Diff to Mount.

8 steps

Render and commit happen on the JS thread; mount happens on the UI thread.
  • JavaScript
  • Native

Render: "what should the UI be?"#

  • React runs on the JS thread; Fabric creates or clones shadow nodes through JSI (createNode, cloneNode…).
  • Only changed nodes are cloned. If a counter lives in a Text three levels deep, that node and its three ancestors are copied; everything else is shared.
  • Render can be thrown away. A low-priority startTransition render can be interrupted by a tap and discarded, because nothing has been committed.

Commit: "where does everything go?"#

  • Layout: Yoga calculates positions and sizes of dirty nodes only. Text is measured by the platform's text system here.
  • Promotion: the new tree becomes the committed tree in an atomic swap.
  • Layout effects run after commit and before mount. A setState there renders and commits again in the same task, so the intermediate state is never shown.

Mount: "make it real"#

MutationMeaning
CreateMake a native view for a new shadow node
DeleteDiscard a view that no longer exists
Insert / RemoveAttach or detach a child view
UpdateApply new props, layout or state to a view

The platform mounting layer (MountingManager on Android, RCTMountingManager on iOS) applies the list on the UI thread. On iOS, Update is where a component view's updateProps is called.

Other entry points#

  • Initial render: the same phases; every mutation is Create.
  • C++ state updates: native code changes a node's State (for example an image's loaded size). Fabric re-runs layout, commit and mount without running React.
  • Synchronous rendering: because the core is synchronous C++ with immutable trees, render and commit can run on the UI thread when needed, for example to show an embedded React Native view fully laid out on its first frame.

Myths vs reality#

Myth

Yoga performs the commit phase: layout calculation and tree promotion

Reality: Yoga only does layout. Promotion is Fabric swapping trees.

Myth

The shadow tree is transformed into a host view tree with rendered pixels

Reality: mount updates views, and the pixels come later from the platform. Mount is cheap because of diffing: only the mutations are applied, never the whole tree.

Myth

The renderer triggers a commit

Reality: React triggers it (completeRoot) when it finishes rendering.

In practice#

Finding the slow phase

RenderCommitMount
SymptomJS busy, taps feel delayedSlow after big layout changesUI-thread jank on screen changes
Typical causeNeedless re-renders, heavy render logicDeep trees resizing, long text re-measuredThousands of Create mutations
Fixmemo, React Compiler, lower state, startTransitionFixed sizes, fewer layout wrappersVirtualized lists, view flattening
ToolReact DevTools ProfilerPerfetto / InstrumentsPerfetto / Instruments (UI thread)
Render cost is JS work, commit cost is layout, mount cost is view changes.

In one sentence

A setState triggers render (React re-runs components and Fabric clones only the changed shadow nodes), then commit (Yoga lays out dirty nodes and the new tree is swapped in atomically, with layout effects right after), then mount (C++ diffs the trees into mutations the UI thread applies to real views), after which the platform draws the frame.