# Bee **Repository Path**: cocoder1993/Bee ## Basic Information - **Project Name**: Bee - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-06-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Bee平台 ## 目录结构 ```plain ├─android ├─ios ├─js │ ├─components │ ├─containers │ ├─contants │ ├─pages │ └─utils │ └─__tests__ ├─build ├─ ... └─ ... ``` ## JavaScript 模块组织 ### js/components/ 放置 React Native 组件,不包含业务逻辑。 组件开发参考 [Presentational and Container Components](https://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0)(中文:[展示性组件和容器组件](http://www.zcfy.cc/article/1658))。`containers/` 目录下面放**容器组件**,`components/` 目录下面放**展示性组件**。容器组件负责系统如何工作,展示性组件负责系统如何表现。 每个目录一个组件: ```plain . ├── Avatar │ ├── Avatar.js │ ├── index.js │ └── styles.js ├── Button │ ├── Button.js │ ├── index.js │ └── styles.js └── Loading ├── Loading.js ├── index.js └── styles.js ``` 组件的样式放在单独的文件中。 ### js/screens/ 目录结构: ```plain . ├── Details.js ├── Home.js ├── Profile.js └── SignIn.js ``` ### js/utils/ 工具包 ### js/contants/ 放置常量,比如错误码提示信息等。 ### js/index.js 入口文件