#9 most askedVery commonMediumNetworking & storage
Storing data on the device
New to Networking & storage? Learn it from scratch firstHTTP: Requests & Responses โ
๐ข Asked in real interviews
No reports yet. Were you asked this? Be the first to say where.Where should a React Native app store user preferences, auth tokens and offline data?
๐ค Answer it out loud, then check yourself
Say your answer as if the interviewer is listening (30โ90 seconds). Then reveal what a strong answer covers and tick what you said.
// Pick the right storage for each kind of data
const where = {
theme: "AsyncStorage or MMKV (small, not secret)",
authToken: "SecureStore / Keychain (encrypted)",
offlineMessages: "SQLite or WatermelonDB (structured, queryable)",
apiCache: "TanStack Query with a persister",
};
for (const [data, store] of Object.entries(where)) console.log(data.padEnd(16), "โ", store);
Answer out loud first, then compare.
Want to rehearse it?Answer this to the AI interviewer and get a verdict โ