React Native Debugging
Flipper, React DevTools, Metro bundler, console.log, breakpoints, performance monitoring
1What is the main role of Metro in a React Native project?
What is the main role of Metro in a React Native project?
Câu trả lời
Metro is React Native's JavaScript bundler that compiles and bundles JavaScript code into a single file for the application. It also handles Hot Module Replacement (HMR) in development, allowing developers to see changes instantly without restarting the app. Metro transforms ES6+, TypeScript and JSX code into JavaScript compatible with the device's JavaScript engine.
2Which command opens the developer menu on an Android emulator?
Which command opens the developer menu on an Android emulator?
Câu trả lời
On an Android emulator, the Ctrl+M shortcut (or Cmd+M on Mac) opens the React Native developer menu. This menu provides access to options like reloading the app, enabling Remote Debugging, inspecting elements with React DevTools, and toggling the Performance Monitor. On a physical device, shaking the device also opens this menu.
3What is Flipper and what is its main advantage for React Native debugging?
What is Flipper and what is its main advantage for React Native debugging?
Câu trả lời
Flipper is a desktop debugging platform developed by Meta that allows inspecting React Native applications without a Chrome bridge. Its main advantage is providing a unified interface to debug both JavaScript code and native iOS/Android code. Flipper supports plugins for network inspector, logs, layout inspector, databases, and allows adding custom plugins.
What is the difference between console.log and console.warn in React Native?
How to enable React DevTools to inspect the React Native component hierarchy?
+15 câu hỏi phỏng vấn
Các chủ đề phỏng vấn React Native khác
JavaScript Essentials
React Fundamentals
React Native Basics
React Hooks
TypeScript for React & React Native
React Native Components & API
React Native Styling & Layout
React Native Navigation
React Native State Management
React Native Networking & API
Data Persistence
Forms & Validation
React Native Animations
Native Modules & Bridge
Platform-Specific Code
Permissions & Device APIs
Push Notifications
React Native Testing
Build & Deployment
Expo vs React Native Bare
Performance Optimization
Memory Management
Architecture Patterns
React Native New Architecture
Security Best Practices
Offline-First Architecture
React Native CI/CD
Monorepo & Code Sharing
Advanced Topics
App Lifecycle & Background Execution
Authentication & Session Management
Monitoring & Crash Reporting
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í