How monu-here/mobile-app works
SchoolApp Mobile is a React Native school-management app. Its main flow checks onboarding and saved authentication state, then presents onboarding, login, or the authenticated home area; users can navigate into school settings, academic/exam tools, and operational records. Screens use a shared API service for backend operations, while local storage persists onboarding and user credentials. The sampled code confirms app-level auth checks, route CRUD, and notice/exam features, but does not expose every screen’s API wiring.
Main entry points: App.js App state and navigation · SettingsListScreen.js Settings catalog · apiService.js API service · screens School reference data
Components 21
App and access
- App state and navigation
App.js - Onboarding
src/screens/OnboardingScreen.js - Login
src/screens/LoginScreen.js - Home dashboard
src/screens/HomeScreen.js - Profile
src/screens/ProfileScreen.js
School settings
- School settings
src/screens/SchoolSettingsScreen.js - Settings catalog
src/screens/SettingsListScreen.js - School reference data
src/screens
Academic operations
- Exam management
src/screens - Calendar and schedule
src/screens - Attendance
src/screens - Grades and results
src/screens
School operations
- Notices and posts
src/screens - Staff management
src/screens
Shared services
- API service
src/api/apiService.js - API endpoints
src/api/config.js - Local persistence
src/utils/storage.js - Toast feedback
src/components/Toast.js
Other components
- School user
- School backend
- Push notification service
Connections 26
- School user → App state and navigation: uses
- App state and navigation → Onboarding: shows
- App state and navigation → Login: shows
- App state and navigation → Home dashboard: shows
- App state and navigation → Profile: shows
- App state and navigation → School settings: shows
- App state and navigation → Settings catalog: shows
- App state and navigation → Local persistence: reads and writes
- App state and navigation → API service: checks authentication
- App state and navigation → API service: subscribes device
- API service → API endpoints: uses endpoints
- API service → School backend: sends requests
- App state and navigation → Push notification service: registers token
- School settings → School reference data: opens settings
- Settings catalog → School reference data: opens records
- Settings catalog → Exam management: opens exams
- Settings catalog → Calendar and schedule: opens calendar
- Settings catalog → Attendance: opens attendance
- Settings catalog → Grades and results: opens results
- Settings catalog → Notices and posts: opens notices
- Settings catalog → Staff management: opens staff
- Exam management → API service: requests exam data
- Notices and posts → API service: requests notice data
- Staff management → API service: requests staff data
- School reference data → API service: requests records
- Home dashboard → Toast feedback: shows feedback