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
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.
- 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
Textthree levels deep, that node and its three ancestors are copied; everything else is shared. - Render can be thrown away. A low-priority
startTransitionrender 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
setStatethere renders and commits again in the same task, so the intermediate state is never shown.
Mount: "make it real"#
| Mutation | Meaning |
|---|---|
Create | Make a native view for a new shadow node |
Delete | Discard a view that no longer exists |
Insert / Remove | Attach or detach a child view |
Update | Apply 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
| Render | Commit | Mount | |
|---|---|---|---|
| Symptom | JS busy, taps feel delayed | Slow after big layout changes | UI-thread jank on screen changes |
| Typical cause | Needless re-renders, heavy render logic | Deep trees resizing, long text re-measured | Thousands of Create mutations |
| Fix | memo, React Compiler, lower state, startTransition | Fixed sizes, fewer layout wrappers | Virtualized lists, view flattening |
| Tool | React DevTools Profiler | Perfetto / Instruments | Perfetto / Instruments (UI thread) |
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.