react-native-mask-segment-c.../docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/examples/draft-recovery.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

346 B

id title
draft-recovery 草稿恢复

💾 草稿恢复

const draft = JSON.parse(mmkv.getString('paint_draft'));

<MaskSegmentCanvas
  originUrl={draft.originUrl}
  maskUrl={draft.maskUrl}
  initialSession={draft}
/>

使用 ref.session() 导出当前会话并存储在 MMKV 或 AsyncStorage 中,以便后续恢复。