react-native-mask-segment-c.../docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/project-structure.md
a1518 bea6de3767 Add Docusaurus documentation site with i18n support
- Docusaurus 3.7.0 with both English and Chinese (zh-CN) locales
- Full API reference split into structured pages
- Homepage with hero, feature cards, and quick start section
- GitHub Actions workflow for auto-deployment to GitHub Pages

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 23:25:56 -07:00

31 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: project-structure
title: 项目结构
---
# 📁 项目结构
```
MaskSegmentApp/ # 仓库根目录npm 包 react-native-mask-segment-canvas
├── App.tsx # 开发自测 Demo直接从 ./src 导入)
├── src/
│ ├── index.ts # 包入口消费方import 'react-native-mask-segment-canvas'
│ ├── components/
│ │ ├── MaskSegmentCanvas.tsx
│ │ └── MaskSegmentCanvas.types.ts
│ └── utils/
│ ├── maskSegmentation.ts
│ ├── maskSegmentRuntime.ts
│ ├── maskSemanticPalette.ts
│ └── ...
├── example/ # ★ 推荐:消费方集成 Demo
│ ├── App.tsx # 仅使用公开 API 的完整示例
│ ├── index.js / app.json
│ ├── package.json # 所需依赖 + "react-native-mask-segment-canvas": "file:.."
│ ├── metro.config.js / babel.config.js / tsconfig.json
│ └── README.md # 如何在真实项目中集成
├── patches/ # 随包发布;由宿主 postinstall 应用
├── ios/ # 根 Demo 原生项目(不发布到 npm
└── android/
```