React Native's Architectural Leap: From Bridge to Direct Native Calls

React Native is undergoing a significant architectural transformation, moving away from its traditional JavaScript bridge. The 'New Architecture' (JSI, Fabric, and TurboModules) enables direct, synchronous communication between JavaScript and native code, drastically reducing latency and improving UI responsiveness.

The top 3

  1. Old Bridge's Costly Asynchronous Communication: React Native's legacy architecture relied on a serialized asynchronous "Bridge" for JavaScript-to-native communication, causing latency, UI lag, and JSON serialization/deserialization overhead, especially in complex applications.
  2. JSI's Direct Native Invocation: 100x Faster: The JavaScript Interface (JSI), a C++ API, replaces the old bridge by enabling direct and synchronous calls between JavaScript and native code, drastically reducing communication overhead from 200ms to 2ms per native call.
  3. Bridge's Asynchronous Bottleneck: JSON Serialization: React Native's original architecture relied on a JavaScript bridge that serialized all communication into JSON, leading to asynchronous message passing and significant performance overhead between JavaScript and native threads.

Sources

Open the full topic