# React Native - Under The Bridge

- Speaker: [Chen Feldman](/wiki/speakers/chen-feldman.md)
- Event: [Reversim Summit 2019](/wiki/years/2019.md)
- Video: https://www.youtube.com/watch?v=2eZ4G-loZkY
- Transcript: [/transcripts/2019/76-2eZ4G-loZkY.md](/transcripts/2019/76-2eZ4G-loZkY.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Mobile Development](/wiki/topics/mobile-development.md), [Performance](/wiki/topics/performance.md), [JavaScript](/wiki/topics/javascript.md), [Architecture](/wiki/topics/architecture.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker provides a deep dive into the architecture of React Native, explaining both how the traditional bridge works and its inherent limitations. The talk then introduces the new architecture, known as Project Fabric, which replaces the bridge with JavaScript Interface (JSI) for shared memory and better performance. Finally, the audience learns about upcoming architectural components like TurboModules and CodeGen, and how these changes will impact developers.

## Key points

- [4:47](https://www.youtube.com/watch?v=2eZ4G-loZkY&t=287s) The speaker introduces the foundational concepts of mobile development and where React Native fits in compared to native development and web-based wrappers.
- [5:59](https://www.youtube.com/watch?v=2eZ4G-loZkY&t=359s) The presentation dives into the current React Native architecture, highlighting the role of the bridge and its eventual limitations discovered over the years.
- [14:12](https://www.youtube.com/watch?v=2eZ4G-loZkY&t=852s) The speaker explains the application startup flow and the roles of the UI manager, JavaScript thread, and shadow thread utilizing the Yoga layout engine.
- [18:28](https://www.youtube.com/watch?v=2eZ4G-loZkY&t=1108s) The advantages and disadvantages of the traditional bridge are analyzed, including asynchronous communication bottlenecks and lack of shared memory.
- [21:41](https://www.youtube.com/watch?v=2eZ4G-loZkY&t=1301s) Project Fabric is introduced as the new architecture designed to eliminate the bridge and address performance and synchronization issues.
- [25:11](https://www.youtube.com/watch?v=2eZ4G-loZkY&t=1511s) The core elements of the new architecture are detailed, including JavaScript Interface (JSI), Fabric, TurboModules, and CodeGen.
- [34:40](https://www.youtube.com/watch?v=2eZ4G-loZkY&t=2080s) The speaker discusses how core libraries are being split into separate packages to improve maintainability and application load times.
- [45:01](https://www.youtube.com/watch?v=2eZ4G-loZkY&t=2701s) Developers are reassured that the transition to the new architecture is mostly transparent to their daily routine and existing codebase.

## Takeaways

- Understand the underlying architecture of your frameworks to avoid costly architectural mistakes.
- Prepare for performance improvements in React Native through the elimination of the JSON bridge and the introduction of JSI.
- Leverage lazy loading of native modules using TurboModules to speed up application startup times.

## Questions this talk answers

- How does the new JSI architecture eliminate the performance bottlenecks of the traditional React Native bridge?
- What are the main differences between the old native modules loading mechanism and TurboModules?
- How will migrating to Project Fabric affect existing React Native applications and developer workflows?

## Technologies

React Native, JavaScript, C++, Java, Swift, Objective-C

## Tags

cross platform, javascript engine, mobile architecture, performance optimization, react native
