Old architecture vs. new architecturePart 9 of 14

Sync vs. async native calls

It's about who waits, not what's faster

IntermediateVerified on React Native 0.88Updated 6 December 2026

The big idea#

A synchronous call stops the JS thread until native code returns a value. An asynchronous call lets the JS thread carry on, and the result arrives later as a new task. Neither is faster in itself. The rule of thumb:

Use sync when the native work is tiny and has a bounded cost (microseconds). Use async when it might take time.

Concepts#

Who waits#

Sync vs. async on the timeline

Sync (JS thread)
Async (JS thread)
Native (other thread)
Your code
Native work, JS blocked
Your code
Paint
Your code
Call
Other tasks
Paint
Continuation
Native work

Lanes: Sync (JS thread), Async (JS thread), Native (other thread). In time order: Your code (Sync (JS thread)); Your code (Async (JS thread)); Native work, JS blocked (Sync (JS thread)); Call (Async (JS thread)); Other tasks (Async (JS thread)); Native work (Native (other thread)); Your code (Sync (JS thread)); Paint (Async (JS thread)); Paint (Sync (JS thread)); Continuation (Async (JS thread)). Arrows: Call to Native work; Native work to Continuation.

With sync, the result exists before paint. With async, a frame can paint first.
  • JavaScript
  • Native

Async has its own costs: scheduling, a Promise, and at least one more turn of the event loop before your code continues.

Which thread runs the native code#

Sync methodAsync method
Native code runs onThe JS thread itselfA background thread (module queue on iOS, native-modules thread on Android)
JS during the callFrozenKeeps running
ResultReturn value, immediatelyThrough CallInvoker → a task

Consequences:

  • A slow sync method freezes JS: no React updates, no JS touch handlers. Native scrolling and UI-thread worklets keep running.
  • Never do main-thread (UI) work inside a sync method. If it waits on the main thread while the main thread waits on JS, the app deadlocks.
  • The frame budget is about 16.7 ms per frame at 60 fps, and 8.3 ms at 120 fps. A sync call should use a tiny fraction of that.

Good and bad uses#

Good for sync (tiny, in memory): constants; memory-mapped key-value storage such as MMKV; reading an in-memory cache or feature flag; small computations like hashing a short string; layout measurement.

Must be async (can take time or wait for something): network, large file reads, image decoding, database queries that can grow, GPS location, anything that can show a permission prompt (including clipboard reads on iOS).

Sync and the event loop#

  • A sync call is part of the current task. Inside useLayoutEffect or the first render, it finishes before the next paint.
  • An async call always finishes in a later task. Native resolves → CallInvoker schedules a task → the await continuation runs as a microtask. Frames can paint in between.
TypeScript
// async storage: the first frame paints with the default theme, then flips
const theme = await AsyncStorage.getItem('theme');

// synchronous storage: the theme is known before the first frame
const theme = storage.getString('theme') ?? 'light';

So any value that must be known before the first paint has to come from a synchronous source.

Myths vs reality#

Myth

Asynchronous is more performant than synchronous

Reality: async avoids blocking, but it isn't faster. Sync costs exactly the native work's duration; async adds scheduling overhead.

Myth

JSI introduced synchronous native methods

Reality: the old architecture had them (RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD, isBlockingSynchronousMethod), but they pushed JSON through the bridge and broke the old remote debugger. JSI made sync calls cheap and practical.

Myth

Native modules should be initialized synchronously at startup

Reality: Turbo Modules are created lazily, on first use. The rule is to keep constructors cheap, because the first call pays for them.

Myth

Getting the current location or reading the clipboard should be synchronous

Reality: location can take seconds, and iOS clipboard reads can show a permission prompt. Both must be async.

In practice#

API design checklist for library authors:

  1. Default to async. It's always safe.
  2. Add sync versions only for cheap, in-memory paths, and name them clearly (getSync, executeSync).
  3. Never touch the main thread from a sync method.
  4. Keep module constructors cheap.
  5. Document which methods block, and for how long.

In one sentence

Sync vs. async decides who waits, not what's faster: a sync JSI call runs native code on the JS thread and finishes before the next paint, which makes it perfect for tiny in-memory work, while anything that might take time or touch the main thread must be async.