expo-project-structure
新建 Expo 应用的文件夹结构。适用于使用 Expo Router 搭建或规划新 Expo 项目,或决定某个文件应放在其中何处。仅适用于新项目——绝不要为了匹配而重构现有应用。
机器翻译查看英文原文
Folder structure for a new Expo app. Use when scaffolding or laying out a new Expo project with Expo Router, or deciding where a file should live in one. For new projects only — never restructure an existing app to match.
适用对象:移动应用开发。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Expo Project Structure
- src/ and src/app
- components/ — reusable UI
- screens/ — screen bodies
- server/ + app/api/ — separate server code
- Platform-specific code
- Colocate styles and tests
- AI and config files
A starting skeleton for a new Expo app — one with no committed folder structure yet. Apply only to new projects. If the app already has a layout, follow its existing conventions and leave files where they are — a default to start from, never a standard to enforce or migrate toward. When unsure whether a project is new, ask before moving anything. The whole layout, assembled from the rules below: Keep app code under src/ to separate it from config files. Expo Router supports both app/ and src/app/ out of the box — to switch, move the folder and restart the bundler. The default template aliases @/ to ./src/ in tsconfig.json. src/app is routes-only: every file there becomes a route, so nothing else belongs in it. Everything below lives in sibling folders. Generic, reused UI (button, card, table) with one named export each. Name files in kebab-case (bar-chart.tsx), matching the default create-expo-app template. When a component grows, give it its own folder with the root in index.tsx and colocate its private sub-components beside it — the import path (@/components/table) stays unchanged. Because app/ files must be routes, complex screen UI that isn't reused has no home there. Once a sc
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- expo/skills
- 源文件
- plugins/expo/skills/expo-project-structure/SKILL.md
- 固定版本
- a9e5bd3fa00b4e61f632e43f85da73aee1942582
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:Expo Skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:42.084Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。