How david-laugh/gomgomi works
Gomgomi is a React Native mobile app for emotionally supportive AI chat, with account management, text chat, voice input/output, and emotion-related user status. The main workflow is login, enter the authenticated app, choose a chat mode, and send text or recorded audio to the service; profile management is a separate branch. The sampled code shows context-based account/API handling and a voice upload path. Other screen internals and the backend are not fully sampled, so those links rely only on documented capabilities or indexed imports.
Main entry points: MainTab.js Main tabs · components Shared interface components · App.js App bootstrap · User.js User and chat state
Components 23
App and navigation
- App bootstrap
src/App.js - Auth routing
src/navigations/index.js - Login navigation
src/navigations/AuthStack.js - Main navigation
src/navigations/MainStack.js - Main tabs
src/navigations/MainTab.js
Account and profile
- Login
src/screens/Login.js - Signup
src/screens/Signup.js - Profile
src/screens/Profile.js - Profile editor
src/screens/ProfileForm.js
Conversation
- Home
src/screens/Home.js - Text chat
src/screens/ChatRoom.js - Chat talk
src/screens/ChatTalk.js - Voice chat
src/screens/ChatCall.js - Voice capture and playback
src/screens/ChatCallRoom.js
Shared runtime
- User and chat state
src/contexts/User.js - Progress state
src/contexts/Progress.js - REST API client
src/utils/api.js - Chat message UI
src/components/MessageContainer.js - Chat input toolbar
src/utils/InputToolbar.js - Shared interface components
src/components - Visual theme
src/theme.js
Other components
- Mobile user
- Gomgomi service
Connections 30
- Mobile user → App bootstrap: opens app
README.md - App bootstrap → Auth routing: renders
src/App.js - App bootstrap → User and chat state: provides state
src/App.js - App bootstrap → Progress state: provides state
src/App.js - Auth routing → Login navigation: shows when logged out
src/navigations/index.js - Auth routing → Main navigation: shows when authenticated
src/navigations/index.js - Login navigation → Login: routes to
src/navigations/AuthStack.js - Login navigation → Signup: routes to
src/navigations/AuthStack.js - Main navigation → Main tabs: includes
src/navigations/MainStack.js - Main tabs → Home: routes to
src/navigations/MainTab.js - Main tabs → Text chat: routes to
src/navigations/MainTab.js - Main tabs → Chat talk: routes to
src/navigations/MainTab.js - Main tabs → Voice chat: routes to
src/navigations/MainTab.js - Main tabs → Profile: routes to
src/navigations/MainTab.js - Login → User and chat state: authenticates through
src/screens/Login.js - Signup → Profile editor: uses form
src/screens/Signup.js - Profile → Profile editor: opens editor
- User and chat state → REST API client: requests account and chat data
src/contexts/User.js - REST API client → Gomgomi service: sends REST requests
src/utils/api.js - Voice capture and playback → Gomgomi service: uploads recorded audio
src/screens/ChatCallRoom.js - Voice capture and playback → User and chat state: reads user token
src/screens/ChatCallRoom.js - Text chat → Chat message UI: uses message display
src/screens/ChatRoom.js - Text chat → Chat input toolbar: uses input toolbar
src/screens/ChatRoom.js - Home → Shared interface components: uses interface elements
src/screens/Home.js - Login → Shared interface components: uses interface elements
src/screens/Login.js - Profile → Shared interface components: uses interface elements
src/screens/Profile.js - Profile editor → Shared interface components: uses interface elements
src/screens/ProfileForm.js - Shared interface components → Visual theme: uses styling
src/components/Accordian.js - Gomgomi service → Mobile user: returns chat and emotion responses
README.md - Voice capture and playback → Mobile user: records and plays audio
README.md