How talktolisten/talktolisten-frontend works
Project Type & Purpose
• This is a mobile front‑end application built with Expo/React Native.
• It provides chat, group chat, character creation, and voice‐streaming features.
• It calls out to backend REST services (user, chat, voice, etc.), uses Firebase (auth/notifications), and integrates with Deepgram for voice processing.
Key Architectural Layers
a. Presentation Layer (UI & Navigation)
– components/… and screens/… hold all visual elements and page layouts.
– navigation/… contains React Navigation stacks and tab navigators.
b. State Management Layer
– redux/store, redux/actions, redux/reducers implement global state, action dispatching, and side‑effects.
c. Networking Layer
– axios/*.jsx modules wrap REST API calls (user, chat, groupchat, voice).
d. Utilities & Config
– util/*.js houses shared constants, helpers, token management.
– firebase.js initializes Firebase SDK.
– babel.config.js, metro.config.js and app.json govern build tooling & Expo.
e. External Services
– Backend API endpoints (authentication, chat, voice).
– Firebase for authentication and possibly push notifications.
– Deepgram for voice transcription/streaming.
Detail
• Which axios module each screen uses.
• Flow of authentication tokens (util/tokenUtils → axios interceptors).