How qunarcorp/qrn-remax-unir-demo works
Core Architecture Components
Common Core
• Source Code (src/)
• Pages
• Components
• App Configuration
Build & Configuration Layer
Build process flow with:
• Webpack Configuration (webpack.config.js)
• Babel Configuration (babel.config.js)
• Remax Configuration (remax.config.js)
Platform-Specific Outputs
React Native/Expo → Mobile Apps
Web (App.web.js) → Browser
Remax → WeChat Mini Program
Flow Representation
Source Code → Build System → Platform-Specific Outputs
Development Flow
A separate section showing the development workflow:
yarn dev → RN/Web Development
yarn dev:wx → WeChat Mini Program Development
Important Notes
• Unified nature of the codebase
• How the shared components are distributed to different platforms
• Where platform-specific code diverges
• Entry points for each platform (App.js, App.web.js, etc.)