React Native

React Native New Architecture

Fabric renderer, Turbo Modules, JSI, Codegen, migration from old architecture

24 câu hỏi phỏng vấn·
Senior
1

What is the React Native New Architecture?

Câu trả lời

The New Architecture is a major overhaul of React Native introduced to improve performance and communication between JavaScript and native code. It comprises three main components: Fabric (new rendering system), Turbo Modules (replacement for Native Modules), and JSI (JavaScript Interface) that enables synchronous and direct communication between JS and native without going through the asynchronous bridge.

2

What is JSI (JavaScript Interface) in the New Architecture?

Câu trả lời

JSI is a lightweight abstraction layer allowing JavaScript code to interact directly with C++ objects without going through the asynchronous JSON bridge of the old architecture. This enables synchronous calls, better performance, and the ability to expose C++ functions directly to the JavaScript runtime. JSI is the foundation on which Fabric and Turbo Modules are built.

3

What is Fabric in the New Architecture?

Câu trả lời

Fabric is React Native's new rendering system that replaces the old UIManager. It uses JSI for synchronous communication with the native UI thread, enabling concurrent rendering and priority updates. Fabric also allows more efficient native-side rendering, reduces layout passes, and supports new features like Suspense and React 18+ transitions.

4

What are Turbo Modules in the New Architecture?

5

What is Codegen in the New Architecture?

+21 câu hỏi phỏng vấn

Nắm vững React Native cho lần phỏng vấn tiếp theo

Truy cập tất cả câu hỏi, flashcards, bài kiểm tra kỹ thuật, bài tập code review và mô phỏng phỏng vấn.

Bắt đầu miễn phí