React Native exécute du code JavaScript et du code natif qui doivent communiquer. L'architecture d'origine utilisait un bridge asynchrone ; la nouvelle architecture (JSI, TurboModules, Fabric) permet une communication plus rapide et synchrone. Comprendre cela clarifier le comportement et les performances de React Native.
L'architecture originale : le 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
