Create a mobile app that allows users to record their daily mood (😃 Happy, 😐 Neutral, 😢 Sad), view their current mood, and see a recent history.
Create the project with TypeScript using Expo:
1npx create-expo-app@latest mood-tracker --template blank-typescript 2cd mood-tracker 3npm run start
💡 Important: Remember to save and upload your code to GitHub by creating a new repository, updating the remote (
git remote set-url origin <your new url>
), and pushing your code to your new repository using theadd
,commit
, andpush
commands from the git terminal.
useState
) and effects (useEffect
).FlatList
and stable keys.Don't jump into coding right away; first design a strategy:
currentMood
, history
).useEffect
?
currentMood
changes to add to history.MoodEntry
) and base values (MoodBase
).accessibilityLabel
.