You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
36 lines
1.0 KiB
/** |
|
* Screens 统一导出 |
|
* |
|
* 这个目录用于存放复杂的业务页面组件 |
|
* |
|
* 目录结构建议: |
|
* screens/ |
|
* ├── index.ts # 统一导出 |
|
* ├── TestScreen/ # 测试页面 |
|
* │ ├── index.tsx # 页面主组件 |
|
* │ ├── components/ # 页面私有组件 |
|
* │ └── styles.ts # 页面样式 |
|
* ├── ProfileScreen/ # 个人资料页面 |
|
* └── SettingsScreen/ # 设置页面 |
|
* |
|
* 使用方式: |
|
* 1. 在 screens/ 目录下创建页面组件 |
|
* 2. 在 app/ 目录下创建路由文件,引用 screens/ 中的组件 |
|
* 3. 从这里统一导出,方便管理 |
|
* |
|
* 示例: |
|
* ```typescript |
|
* // screens/TestScreen/index.tsx |
|
* export default function TestScreen() { |
|
* return <View>...</View>; |
|
* } |
|
* |
|
* // app/test.tsx |
|
* import TestScreen from '@/screens/TestScreen'; |
|
* export default TestScreen; |
|
* ``` |
|
*/ |
|
|
|
// 当前暂无导出,等待添加业务页面组件 |
|
export {}; |
|
|
|
|