#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 β