React Native New Architecture 라이브러리 제작
크로스플랫폼 코리아 6월 밋업 영상입니다. 이번 주제는 "React Native New Architecture 라이브러리 제작"입니다.
크로스플랫폼 코리아 6월 밋업 영상입니다. 이번 주제는 "React Native New Architecture 라이브러리 제작"입니다.
React Native Architecture
refers to the internal structure and operating principles of a React Native application. The initial architecture of React Native consisted of several main components, and over time, enhancements and updates were made to improve the performance and stability of the application. This explanation is based on information up to 2021.
Bridge: This was a core component of React Native's initial architecture. The Bridge facilitated communication between the JavaScript thread and the Native thread. It was responsible for sending UI updates, events, etc., generated in JavaScript, to the Native code.
JavaScript Core (JSC): This is the JavaScript engine used in iOS. In Android, the JSC is bundled for distribution.
Native Modules: These are modules in React Native applications that provide access to the native features of a device. For instance, they allow access to the camera, GPS, and file system.
However, Facebook is continuously working to improve the performance and flexibility of React Native's architecture. New architectural updates, like "Fabric" and "TurboModules," have been introduced.
Fabric: This is a project to rewrite the UI layer of React Native. It aims to achieve faster UI updates and smoother animations. Fabric minimizes the communication between JavaScript and Native, thereby enhancing performance.
TurboModules: These are a rewritten version of Native Modules, aiming to improve the communication performance between the JavaScript thread and the Native thread.
The introduction of this new architecture aims to boost the performance of React Native applications and streamline their integration with Native components.
For a more detailed understanding, check out The New Architecture of React Native.