Is lesson ke end tak aapke routines app band karne ke baad bhi bache rahenge, roz ek reminder aayega, aur aap jaanoge ki Expo ke common errors kaise theek karte hain aur Expo Go kab kaafi nahi hota.
Aapko chahiye: lesson 3 wala Daily Routine app Expo Go mein chalta hua, aur aapka coding agent · Time: 8 minute
Expo Go poori tarah band karo aur app dobara kholo. Naye routines gayab! Abhi wo sirf phone ki memory mein hain, jo app band hote hi saaf ho jaati hai.
Unhe bachane ke liye app ko phone ki storage mein save karna hoga. Do common options, dono Expo Go mein chalte hain:
- AsyncStorage: simple "key → value" store. Hamari chhoti list ke liye perfect.
- expo-sqlite: phone par asli database. Jab hazaron rows hon ya search aur reports chahiye (jaise poora UPI expense tracker), tab better hai.
Prompt · ise apne AI agent mein paste karoRoutines and today's ticks disappear when I close the app. Save them on the phone so they survive restarts. Use @react-native-async-storage/async-storage and install it with "npx expo install", not npm install. Rules: load saved routines when the app starts; save after every add or tick; a new day starts with all ticks cleared, but the routines stay; if nothing is saved yet, show the three sample routines. Tell me how to test it on my phone.
Test: ek routine add karo, do par tick lagao, Expo Go poora band karo (swipe karke hata do), phir kholo. Sab kuch waisa hi milna chahiye.
Abhi karo Abhi karo: saving test karo
Kyun?Jo app data bhool jaaye wo demo hai, app nahi. Phone par save karne ka matlab: na server, na login, na monthly bill.
Dhyaan doAsyncStorage encrypted nahi hai. Routines ke liye theek hai, passwords, OTP ya bank details ke liye kabhi nahi.
Baaki lesson padhne ke liye free login karo
Har lesson free hai. Free account se saare lessons khul jaate hain aur aapki progress save hoti hai.
Is lesson mein aage:
- Hamesha npx expo install use karo
- Daily reminder lagao
- Do commands se common errors theek karo
- Jab Expo Go kaafi na ho: development builds
- Recap