Data Persistence
AsyncStorage, MMKV, SQLite, Realm, secure storage, caching strategies
1What is the main characteristic of AsyncStorage in React Native?
What is the main characteristic of AsyncStorage in React Native?
คำตอบ
AsyncStorage is an asynchronous, unencrypted, persistent key-value storage system. It works globally across the app and stores data as strings. It's the simplest storage solution built into React Native, ideal for simple user preferences or non-sensitive data.
2How to store a JavaScript object in AsyncStorage?
How to store a JavaScript object in AsyncStorage?
คำตอบ
AsyncStorage can only store strings. To store a JavaScript object, it must be serialized with JSON.stringify() before storing, then deserialized with JSON.parse() when reading. This step is mandatory because AsyncStorage does not accept objects directly.
3What is the main advantage of MMKV compared to AsyncStorage?
What is the main advantage of MMKV compared to AsyncStorage?
คำตอบ
MMKV (Memory-Mapped Key-Value) offers performance up to 30 times faster than AsyncStorage thanks to memory-mapping and synchronous data access. Developed by WeChat to handle billions of users, it's particularly suited for applications requiring frequent reads/writes or large data sizes.
When should SQLite be used instead of AsyncStorage or MMKV?
What is the main characteristic of Realm compared to SQLite?
+17 คำถามสัมภาษณ์
หัวข้อสัมภาษณ์ React Native อื่นๆ
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
Forms & Validation
React Native Animations
Native Modules & Bridge
Platform-Specific Code
Permissions & Device APIs
Push Notifications
React Native Testing
React Native Debugging
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
เชี่ยวชาญ React Native สำหรับการสัมภาษณ์ครั้งถัดไป
เข้าถึงคำถามทั้งหมด flashcards แบบทดสอบเทคนิค แบบฝึกหัด code review และตัวจำลองสัมภาษณ์
เริ่มใช้ฟรี