يقوم React Native بتشغيل كود JavaScript وكود أصلي يجب أن يتواصلا. استخدمت المعمارية الأصلية جسراً غير متزامن؛ المعمارية الجديدة (JSI, TurboModules, Fabric) تُمكّن من تواصل أسرع وتزامني. فهم هذا يوضح سلوك React Native وأدائه.
المعمارية الأصلية: الجسر
React Native runs:
→ a JS THREAD (your React/JS code) and the NATIVE side (UI, native modules)
→ they communicate over a BRIDGE: messages are SERIALIZED (to JSON), passed ASYNC,
and deserialized on the other side
Limitations:
✗ ASYNCHRONOUS only (can't call native synchronously)
✗ SERIALIZATION overhead; the bridge can be a BOTTLENECK with heavy traffic
✗ e.g. fast scrolling/animations passing data over the bridge → jank
