How thangpaisen/randomquotes works
Main System Components
a) Frontend Layer (Mobile App)
• React Native/Expo Application
• Navigation System
• UI Components
• State Management
• API Integration
b) External Services
• Random Quotes API (quotable)
Detailed Component Breakdown
A. Presentation Layer
• Home Screen (Random Quotes)
• Search Screen (Authors & Tags)
• Bookmark Screen
• Quote By Author Screen
• With the navigation system (MainBottomNavigation.tsx)
B. Component Layer
• Reusable components:
• HeaderNormal
• IconSvgView
• LoadingView
• Search Components (AuthorList, SearchTabs, TagsList)
C. Business Logic Layer
• Custom Hooks:
• useListAuthors
• useListQuoteByAuthor
• useListQuoteByTag
• useListRandomQuote
• useStore
D. Data Management Layer
• Store:
• User Store (for bookmarks)
• API Service:
• External API communication
┌─────────────────────────────────────────────────────┐
• Mobile Application │
• ┌─────────────────┐ ┌─────────────────────────┐ │
• Presentation │ │ Components │ │
• Layer │ │ │ │
• ┬────────┘ └─────────────┬─────────┘ │
• ┌────────┴────────┐ ┌─────────────┴─────────┐ │
• Business Logic │ │ Data Management │ │
• Layer │ │ Layer │ │
• ┬────────┘ └─────────────┬─────────┘ │
• ┼──────────────────────────┼────────────┘
• ┐ ┌────────┘
• ┌─────┴─┴───────┐
• External API │
• ┘
Important Relationships to Highlight
• How the Hooks layer interfaces between UI and API
• State management flow for bookmarks
• Demonstrate the navigation structure between screens
• Data flow from API to UI components
Technical Details
• React Native/Expo as the main framework
• Navigation system using React Navigation
• Custom hooks for data fetching
• Local storage for bookmarks
• API integration patterns