How lekhanhdat/travel works
Project type and purpose
• This is a cross-platform React Native mobile application (“Travel”) that runs on Android and iOS.
• It provides users with travel-related features: camera capture, interactive maps, location details (audio, images, video), a news feed, and user authentication/profile management.
File structure
• Top-level folders and files:
• App.tsx + index.js – entry point for the JS bundle, register root component.
• babel.config.js, metro.config.js – JS bundler configuration.
• src/ – core application code, subdivided into:
– assets/ – images, SVGs, fonts
– common/ – shared styles, constants, types
– component/ – reusable UI components (buttons, headers, list items)
– container/screens/ – “smart” containers for each app screen (Camera, Home, Maps, NewFeed, Login, Profile)
– services/ – axios HTTP client wrapper and modules for AI API calls and location API calls
– utils/ – helper functions (storage, polyline decode, distance calc)
– res/ – resource aggregator (i18n strings, images)
• Configuration and lint/build scripts: .eslintrc.js, jest.config.js, Gemfile (Ruby tooling for iOS), build.gradle, Podfile, etc.
README
• Confirms this is a vanilla React Native app, bootstrapped with @react-native-community/cli.
Elements
• Native layers (gray)
• JS layers: Presentation (blue), Logic (green), Data (orange)
• External services (purple)
• Notes on key interfaces (e.g., React Native Bridge, AsyncStorage, Axios).