React Native ऐप्स को अक्सर data को locally store करने की आवश्यकता होती है — user preferences, cached data, auth tokens, offline content। Options में AsyncStorage (key-value), MMKV (fast), SQLite, और sensitive data के लिए secure storage शामिल हैं। सही चुनना मायने रखता है।
Local storage options
ASYNCSTORAGE → simple async KEY-VALUE storage (the common basic option):
→ store strings (serialize objects to JSON); for settings, small data, simple caching
→ async API; persists across app launches
MMKV → a very FAST key-value storage (by WeChat) — faster than AsyncStorage, synchronous;
popular modern choice for performance
SQLITE (e.g. expo-sqlite, react-native-sqlite, WatermelonDB) → relational DATABASE for
STRUCTURED/large data, queries, relationships, offline-first apps
SECURE STORAGE → expo-secure-store / react-native-keychain for SENSITIVE data (tokens,
credentials) — ENCRYPTED (keychain/keystore)
