React Native JavaScript ਅਤੇ native ਕੋਡ ਨੂੰ ਚਲਾਉਂਦਾ ਹੈ ਜਿਸਨੂੰ ਆਪਸ ਵਿੱਚ ਸੰਚਾਰ ਕਰਨਾ ਪੈਂਦਾ ਹੈ। ਮੂਲ ਆਰਕੀਟੈਕਚਰ ਵਿੱਚ ਇੱਕ asynchronous bridge ਦੀ ਵਰਤੋਂ ਕੀਤੀ ਜਾਂਦੀ ਸੀ؛ new architecture (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
