Skip to content
cccskills
FreePublished on GitHub

mobile-hybrid

移动端跨平台开发。覆盖 React Native / Flutter / Expo / Ionic / Capacitor / Tauri。

The English summary is being prepared. Showing the original description.

See how to install

Files included (2)

  • SKILL.md5.4 KB
  • templates/mobile-hybrid-template.md556 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

移动端跨平台开发(Mobile & Hybrid)

适用场景

  • React Native / Expo APP 开发
  • Flutter APP 开发
  • Ionic / Capacitor 混合 APP
  • Tauri 桌面应用
  • 跨平台架构选型
  • 原生模块桥接

与其他 skill 的分工

场景用什么
移动端 APP / 桌面应用本 skill
小程序(微信/支付宝)miniprogram-development/
Web 页面component-architecture/
API 调用data-fetching/

技术栈决策

┌─ 跨平台选型决策 ───────────────────────────────────────────┐
│                                                             │
│  Q1: 性能要求?                                             │
│    极致原生感 → Flutter / 原生                              │
│    够用就行   → React Native / Ionic                       │
│                                                             │
│  Q2: 团队技术栈?                                           │
│    React/TS → React Native + Expo                          │
│    Dart 可学 → Flutter                                      │
│    Web 技术  → Ionic + Capacitor                           │
│    Rust      → Tauri(桌面)                                │
│                                                             │
│  Q3: 需要哪些端?                                           │
│    iOS + Android → RN / Flutter                            │
│    iOS + Android + Web → Flutter / Ionic                    │
│    桌面(Win/Mac/Linux) → Tauri / Electron                │
│    全部 → Flutter(最多端)                                 │
└─────────────────────────────────────────────────────────────┘

框架对比

框架语言性能热更新包大小生态适合
React NativeTypeScript良好CodePush8~15MB庞大React 团队
ExpoTypeScript良好EAS Update15~25MBExpo 生态快速 RN 开发
FlutterDart优秀Shorebird10~20MBGoogle高保真 UI
IonicTypeScript一般直接部署5~10MBWeb 生态Web 技术做 APP
CapacitorTypeScript一般-5~10MBIonic 出品Web→APP 壳
TauriRust+TS优秀-3~8MBRust桌面应用
ElectronTypeScript一般-100MB+庞大桌面(不推荐新项目)

React Native + Expo 快速上手

# 创建项目(Expo 推荐)
npx create-expo-app@latest my-app
cd my-app
npx expo start

# 导航(必备)
npx expo install expo-router

# 状态管理
pnpm add zustand

# UI 组件库
pnpm add tamagui  # 或 react-native-paper / nativebase

项目结构(Expo Router)

app/
├── (tabs)/              # Tab 导航组
│   ├── index.tsx        # 首页 Tab
│   ├── explore.tsx      # 探索 Tab
│   └── _layout.tsx      # Tab Layout
├── modal.tsx            # Modal 页面
├── [id].tsx             # 动态路由
├── _layout.tsx          # 根 Layout
└── +not-found.tsx       # 404
components/
├── ui/                  # 基础组件
└── features/            # 业务组件

Flutter 快速上手

# 创建项目
flutter create my_app
cd my_app
flutter run

# 常用包
flutter pub add go_router        # 路由
flutter pub add riverpod         # 状态管理
flutter pub add dio              # 网络请求
flutter pub add freezed          # 数据类

组件库选型

React Native

库Stars风格适合
Tamagui10K+跨平台通用高性能 + Web 复用
React Native Paper13K+Material DesignMD 风格
NativeBase20K+通用功能全
Gluestack UI3K+现代NativeBase 继任
RN UI Lib6K+Wix 出品企业级

Flutter

库说明
Material 3Flutter 内置,Material Design 3
CupertinoFlutter 内置,iOS 风格
FlutterFlow低代码 Flutter UI
GetWidget1000+ 预制组件

常见坑

1. Expo 托管工作流 vs 裸工作流选错 → 后期迁移痛苦
2. React Native 原生模块版本冲突 → 锁版本 + patch-package
3. Flutter 热重载失效 → 有状态 Widget 注意 key
4. 不测真机 → 模拟器表现不一致
5. iOS 审核被拒 → 提前读 Apple Guidelines
6. Android 权限不声明 → 运行时崩溃
7. 包大小不控制 → 用户不愿下载
8. 不做离线缓存 → 弱网体验差
9. 推送证书过期 → 推送静默失效
10. 不做崩溃监控 → 线上问题无感知

配套模板

  • templates/mobile-hybrid-template.md

与其他 skill 的协作

上游:
  ui-ux-designer → APP 设计稿(iOS/Android 规范差异)
  api-designer → API 契约

下游:
  testing-frontend → APP 自动化测试(Detox/Appium)
  build-deploy → APP 构建发布(EAS/Fastlane)
  devops-engineer → APP CI/CD

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

A/B 测试设计与分析时使用。适用于产品实验、功能验证、转化率优化。融合假设驱动 + 样本量计算 + 置信度判断。

The English summary is being prepared. Showing the original description.

zhaoxuya520/AI-Fullstack-Delivery-Workflow53Updated May 19, 2026

上线前业务方/产品方验收时使用。适用于功能交付确认、UAT、发布会签。融合 BDD Given-When-Then、Specification by Example、ATDD。

The English summary is being prepared. Showing the original description.

zhaoxuya520/AI-Fullstack-Delivery-Workflow53Updated May 19, 2026

设计无障碍可访问的界面时使用。适用于满足 WCAG 标准、键盘导航、屏幕阅读器支持。优先使用 WCAG 2.2 AA 级标准 + 键盘 + 焦点 + 对比度 + ARIA。

The English summary is being prepared. Showing the original description.

zhaoxuya520/AI-Fullstack-Delivery-Workflow53Updated May 19, 2026

实现可访问性(无障碍)时使用。覆盖 WCAG 2.2 AA / ARIA / 键盘导航 / 屏幕阅读器 / 颜色对比 / 焦点管理。融合 React Aria / Radix UI / Headless UI 实践 + axe-core 自动化测试。

The English summary is being prepared. Showing the original description.

zhaoxuya520/AI-Fullstack-Delivery-Workflow53Updated May 19, 2026

AI 模型部署时使用。适用于推理服务 / GPU / TensorRT / 监控 / 扩缩容。

The English summary is being prepared. Showing the original description.

zhaoxuya520/AI-Fullstack-Delivery-Workflow53Updated May 19, 2026

数据分析报告输出时使用。适用于业务分析报告、周报、专项分析、决策支持。融合洞察 + 建议 + 行动项。

The English summary is being prepared. Showing the original description.

zhaoxuya520/AI-Fullstack-Delivery-Workflow53Updated May 19, 2026

See all skills by zhaoxuya520

Report a problem with this skill