How sbajrac2/emosense works
EmoSense is a child-focused emotional-learning app. Learners enter through login, choose a lesson or activity, complete emotion exercises using emoji, photo, video, and other interaction modes, then view summaries and rewards. Navigation is explicitly wired in AppNavigator; the README describes the lesson and activity flow. Accessibility and reward state are provided by app-wide contexts, with speech and visual-cue helpers supporting exercises. Several activity implementations are represented by a shared catalog node because their individual navigation wiring is visible but not all source was excerpted.
Main entry points: AppNavigator.js App navigator · App.js App root · PictureEmotionActivity.js Picture emotions · VideoEmotionActivity.js Video emotions
Components 27
App and navigation
- App root
App.js - App navigator
src/navigation/AppNavigator.js - Simple icons
src/components/SimpleIcon.js - Theme constants
src/constants/theme.js
Learning journeys
- Login
src/screens/LoginScreen.js - Lesson map
src/screens/LessonsScreen.js - Activity selection
src/screens/ActivitiesScreen.js
Emotion activities
- Matching exercise
src/screens/MatchingExerciseScreen.js - Picture emotions
src/screens/PictureEmotionActivity.js - Video emotions
src/screens/VideoEmotionActivity.js - Swipe emotions
src/screens/SwipeEmotionActivity.js - Build a face
src/screens/BuildAFaceActivity.js - Other exercise modes
src/screens - Feedback messages
src/utils/feedbackMessages.js - Learning media
src/constants/images.js
Accessibility support
- Speech preference
src/contexts/TTSContext.js - Speaker button
src/components/SpeakerButton.js - Speech toggle
src/components/TTSToggle.js - Text to speech
src/utils/textToSpeech.js - Visual cue helper
src/utils/visualCueHelper.js - Visual cue display
src/components/VisualCue.js - Sound effects
src/utils/soundEffects.js
Progress and rewards
- Lesson summary
src/screens/LessonSummaryScreen.js - Profile
src/screens/ProfileScreen.js - Badges
src/screens/BadgesScreen.js - Reward state
src/contexts/RewardContext.js
Other components
- Learner
Connections 31
- Learner → App root: starts app
App.js - App root → App navigator: opens navigation
App.js - App root → Speech preference: provides context
App.js - App root → Reward state: provides context
App.js - App navigator → Login: routes to
src/navigation/AppNavigator.js - App navigator → Lesson map: routes to
src/navigation/AppNavigator.js - App navigator → Activity selection: routes to
src/navigation/AppNavigator.js - App navigator → Matching exercise: routes to
src/navigation/AppNavigator.js - App navigator → Picture emotions: routes to
src/navigation/AppNavigator.js - App navigator → Video emotions: routes to
src/navigation/AppNavigator.js - App navigator → Swipe emotions: routes to
src/navigation/AppNavigator.js - App navigator → Build a face: routes to
src/navigation/AppNavigator.js - App navigator → Other exercise modes: registers screens
src/navigation/AppNavigator.js - App navigator → Lesson summary: routes to
src/navigation/AppNavigator.js - App navigator → Profile: routes to
src/navigation/AppNavigator.js - App navigator → Badges: routes to
src/navigation/AppNavigator.js - Activity selection → Learning media: uses media
src/screens/ActivitiesScreen.js - Activity selection → Speech toggle: renders toggle
src/screens/ActivitiesScreen.js - Matching exercise → Feedback messages: gets feedback
src/screens/MatchingExerciseScreen.js - Picture emotions → Visual cue helper: generates cues
src/screens/PictureEmotionActivity.js - Picture emotions → Visual cue display: renders cues
src/screens/PictureEmotionActivity.js - Picture emotions → Feedback messages: gets feedback
src/screens/PictureEmotionActivity.js - Video emotions → Sound effects: uses effects
src/screens/VideoEmotionActivity.js - Video emotions → Visual cue helper: uses cues
src/screens/VideoEmotionActivity.js - Video emotions → Feedback messages: gets feedback
src/screens/VideoEmotionActivity.js - Speaker button → Text to speech: speaks text
src/components/SpeakerButton.js - Speaker button → Speech preference: reads preference
src/components/SpeakerButton.js - Speech toggle → Speech preference: updates preference
src/components/TTSToggle.js - Badges → Reward state: reads rewards
src/screens/BadgesScreen.js - Lesson map → Speaker button: renders speaker
src/screens/LessonsScreen.js - Build a face → Reward state: updates rewards
src/screens/BuildAFaceActivity.js