React Native รันโค้ด JavaScript และ native ที่ต้องสื่อสารกัน สถาปัตยกรรมดั้งเดิมใช้ bridge แบบ asynchronous ส่วน สถาปัตยกรรมใหม่ (JSI, TurboModules, Fabric) ช่วยให้การสื่อสารเร็วขึ้นและเป็นแบบ synchronous การเข้าใจสิ่งนี้ช่วยให้เข้าใจพฤติกรรมและประสิทธิภาพของ React Native ชัดเจนขึ้น
สถาปัตยกรรมดั้งเดิม: bridge
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
