Web 应用迁移到 Expo
原名:expo-web-to-native
把 React Web 项目逐步迁移为 iOS、Android 可运行的 Expo 应用。
中文 Skills 技能说明
适合从 Next.js、Vite 或 CRA 复用业务逻辑并重做原生交互。技能会先盘点 DOM、CSS、路由和存储依赖,再分阶段替换;不能承诺一键转换,登录、支付、权限和隐私流程必须按移动平台重新验证。
上游能力依据
上游原始适用说明:Framework (OSS). Migrate an existing web React app to a native iOS/Android app with Expo. Use when the user wants to turn a website into a mobile app, port a Next.js/Vite/CRA React codebase to React Native, reuse web code on native incrementally, or asks how web idioms (the DOM, CSS, React Router, localStorage, window) map to native. This is the end-to-end migration guide; use the expo-dom skill for the DOM-component mechanism itself.
上游 SKILL.md 主要章节(保留原文标题):
- Principles
- Run it as a loop (recommended)
- The migration
- 1. Assess → write the worklist
- 2. Scaffold the shell
- 3. Shell it in DOM components — the day-one milestone
- 4. Strangle screens to native — by value
- 5. Wire data, auth, and storage
- 6. Ship
- Verify by running, not compiling
使用边界
先读取项目约定、依赖版本和现有测试,再提出最小改动。写文件、运行脚本、提交代码或发布前应检查差异并保留回退路径。
作者、翻译与许可证
- 原作者
- 650 Industries, Inc.(Expo)与 expo/skills contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/expo/skills/tree/50f59f837ddb7595d8c6683c693207e265d58c43/plugins/expo/skills/expo-web-to-native
适用范围
平台:linux、macos、windows;标签:移动应用开发、Web 应用迁移到 Expo
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。