How rammelz-v2/vocalink-mobile works
VocaLink Mobile is an Expo app for student and teacher communication support. Users enter through authentication, then role-aware tabs present student AAC, live captioning and home views, or teacher home and live-room views; both roles can access profile features. The AAC board can request next-symbol predictions and send requests, while the app also tracks activity and session presence. The excerpts show authentication persistence and selected API calls; connections for other documented-by-code but unsampled screens are omitted or marked unverified.
Main entry points: index.tsx Role-based tabs · AuthContext.tsx Authentication state · home.tsx Student home · board.tsx AAC board
Components 21
App entry
- Root layout
app/_layout.tsx - Role-based tabs
app/(tabs)/index.tsx
Identity and profile
- Auth routes
app/(auth)/login.tsx - Authentication state
contexts/AuthContext.tsx - Profile editing
app/edit-profile.tsx - Profile screen
components/screens/profile.tsx
Student support
- Student home
components/screens/home.tsx - AAC board
components/screens/board.tsx - Student live captions
components/screens/livecc.tsx - AAC sample data
constants/mockdata.ts
Teacher tools
- Teacher home
components/screens/teacher-home.tsx - Teacher live room
components/screens/teacher-livecc.tsx
Shared services
- Token storage
utils/storage.ts - Role-aware navigation
components/ui/BottomNav.tsx - Screen header
components/ui/ScreenHeader.tsx - Shared UI controls
components/ui/shared.tsx - Cross-platform alerts
components/CrossAlert.tsx - Design tokens
constants/tokens.ts - API base URL
constants/api.ts
Other components
- App user
- VocaLink API
Connections 34
- App user → Root layout: opens app
- Root layout → Auth routes: routes unauthenticated
app/_layout.tsx - Root layout → Authentication state: provides auth
app/_layout.tsx - App user → Auth routes: signs in or up
- Auth routes → Authentication state: calls auth actions
app/(auth)/login.tsx - Authentication state → Token storage: persists token
contexts/AuthContext.tsx - Authentication state → API base URL: uses endpoint base
contexts/AuthContext.tsx - Authentication state → VocaLink API: auth and profile requests
contexts/AuthContext.tsx - Authentication state → Role-based tabs: supplies user role
app/(tabs)/index.tsx - App user → Role-based tabs: uses app tabs
- Role-based tabs → Student home: renders student home
app/(tabs)/index.tsx - Role-based tabs → AAC board: renders board
app/(tabs)/index.tsx - Role-based tabs → Student live captions: renders captions
app/(tabs)/index.tsx - Role-based tabs → Teacher home: renders teacher home
app/(tabs)/index.tsx - Role-based tabs → Teacher live room: renders teacher room
app/(tabs)/index.tsx - Role-based tabs → Profile screen: renders profile
app/(tabs)/index.tsx - Role-based tabs → Role-aware navigation: renders navigation
app/(tabs)/index.tsx - Role-based tabs → VocaLink API: checks presence and sessions
app/(tabs)/index.tsx - Student home → VocaLink API: fetches recent activity
components/screens/home.tsx - AAC board → VocaLink API: requests predictions and sends requests
components/screens/board.tsx - AAC board → AAC sample data: uses AAC symbols
components/screens/board.tsx - Profile editing → Authentication state: updates profile
app/edit-profile.tsx - Student home → Teacher home: renders for teacher role
components/screens/home.tsx - AAC board → Screen header: renders header
components/screens/board.tsx - Student home → Screen header: renders header
components/screens/home.tsx - Student home → Shared UI controls: uses shared controls
components/screens/home.tsx - Role-aware navigation → Authentication state: reads user role
components/ui/BottomNav.tsx - Screen header → Design tokens: uses design tokens
components/ui/ScreenHeader.tsx - Shared UI controls → Design tokens: uses design tokens
components/ui/shared.tsx - Auth routes → Cross-platform alerts: uses alert provider
app/(auth)/login.tsx - Student live captions → VocaLink API: uses API
- Teacher home → VocaLink API: uses API
- Teacher live room → VocaLink API: uses API
- Profile screen → Authentication state: uses auth state
components/screens/profile.tsx