React Native JavaScript અને native કોડ ચલાવે છે જે એક બીજા સાથે સંચાર કરવો જોઈએ. મૂળ આર્કિટેક્ચર asynchronous bridge નો ઉપયોગ કરતો હતો; નવો આર્કિટેક્ચર (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
