React Native

Native Modules & Bridge

Native modules, Turbo Modules, JSI, bridging iOS/Android, third-party modules

20 питань зі співбесід·
Mid-Level
1

What is a native module in React Native?

Відповідь

A native module is a piece of code written in native language (Objective-C/Swift for iOS, Java/Kotlin for Android) that exposes functionalities to JavaScript code. This allows accessing native APIs not directly available in React Native, such as biometric sensors or Bluetooth.

2

What is the role of the bridge in React Native's traditional architecture?

Відповідь

The bridge is the communication mechanism between the JavaScript thread and native threads in the traditional architecture. It serializes data to JSON to transfer it asynchronously between both environments. This asynchronous communication can create latency for frequent operations.

3

How to expose a native method to JavaScript on iOS with the old architecture?

Відповідь

On iOS with the old architecture, you need to create a class that inherits from NSObject and implements the RCTBridgeModule protocol. The RCT_EXPORT_MODULE() macro registers the module, and RCT_EXPORT_METHOD() exposes each method to JavaScript. These macros generate the necessary bridging code.

4

Which annotation to use to expose a native method on Android with the old architecture?

5

What is JSI (JavaScript Interface) in React Native's new architecture?

+17 питань зі співбесід

Інші теми співбесід React Native

JavaScript Essentials

Junior
25 запитань

React Fundamentals

Junior
20 запитань

React Native Basics

Junior
22 запитань

React Hooks

Junior
20 запитань

TypeScript for React & React Native

Junior
22 запитань

React Native Components & API

Junior
20 запитань

React Native Styling & Layout

Junior
18 запитань

React Native Navigation

Mid-Level
22 запитань

React Native State Management

Mid-Level
24 запитань

React Native Networking & API

Mid-Level
20 запитань

Data Persistence

Mid-Level
20 запитань

Forms & Validation

Mid-Level
18 запитань

React Native Animations

Mid-Level
22 запитань

Platform-Specific Code

Mid-Level
18 запитань

Permissions & Device APIs

Mid-Level
20 запитань

Push Notifications

Mid-Level
18 запитань

React Native Testing

Mid-Level
20 запитань

React Native Debugging

Mid-Level
18 запитань

Build & Deployment

Mid-Level
20 запитань

Expo vs React Native Bare

Mid-Level
18 запитань

Performance Optimization

Senior
24 запитань

Memory Management

Senior
20 запитань

Architecture Patterns

Senior
22 запитань

React Native New Architecture

Senior
24 запитань

Security Best Practices

Senior
20 запитань

Offline-First Architecture

Senior
20 запитань

React Native CI/CD

Senior
20 запитань

Monorepo & Code Sharing

Senior
18 запитань

Advanced Topics

Senior
22 запитань

App Lifecycle & Background Execution

Mid-Level
20 запитань

Authentication & Session Management

Mid-Level
22 запитань

Monitoring & Crash Reporting

Senior
20 запитань

Опануй React Native для наступної співбесіди

Отримай доступ до всіх питань, flashcards, технічних тестів, вправ code review та симуляторів співбесід.

Почни безкоштовно