Skip to content

docs(cndocs): remove deprecated APIs#1038

Merged
sunnylqm merged 1 commit into
productionfrom
auto-translate-20260712
Jul 12, 2026
Merged

docs(cndocs): remove deprecated APIs#1038
sunnylqm merged 1 commit into
productionfrom
auto-translate-20260712

Conversation

@sunnylqm

@sunnylqm sunnylqm commented Jul 12, 2026

Copy link
Copy Markdown

概要

同步上游 Remove deprecated APIs (#5167) 对中文文档的影响:

  • 删除已从上游移除的 InteractionManager API 文档,并从中文侧边栏移除对应入口
  • 更新 Animated、动画指南、PanResponder 与性能指南中对 InteractionManager 的引用,改为 interaction handle 或 requestIdleCallback 的最新表述
  • ModalScrollViewStatusBar 中移除上游已删除的弃用属性、方法和兼容值
  • 从定时器指南移除已删除的 InteractionManager 章节

website → cnwebsite 同步

本次上游合并在 website/ 中仅修改了 sidebars.ts(移除 interactionmanager);已同步到 cnwebsite/sidebars.ts。本次没有新的 package、Docusaurus 配置、TypeScript 配置或依赖版本变更需要同步。

候选核验

sync-translations.sh 共列出 18 个候选。逐项核验后,9 个文档存在本次上游内容漂移,interactionmanager.md 为上游已删除的孤立中文文档;其余 8 个候选(已移除组件 stub)及 colors.md 已与上游结构和链接对齐,因此未做无意义改写。

验证

  • git diff --check
  • yarn --cwd cnwebsite build(通过;仅有仓库现存的历史版本文档链接和 HTML minifier 警告)

本批次不涉及 Expo-first 内容。


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Documentation
    • Updated animation, gesture, and performance guidance to describe interaction handles more clearly.
    • Recommended requestIdleCallback for deferring JavaScript work during idle periods.
    • Removed the deprecated InteractionManager documentation and sidebar entry.
    • Removed outdated Modal, ScrollView, and StatusBar properties and methods.
    • Updated StatusBar examples and animation behavior descriptions.

@netlify

netlify Bot commented Jul 12, 2026

Copy link
Copy Markdown

Deploy Preview for reactnativecn failed. Why did it fail? →

Name Link
🔨 Latest commit 0e19642
🔍 Latest deploy log https://app.netlify.com/projects/reactnativecn/deploys/6a537ad0b8a22e00085ced6d

@coderabbitai

coderabbitai Bot commented Jul 12, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 601f414e-8271-4506-a2c4-bbaf44b5b24a

📥 Commits

Reviewing files that changed from the base of the PR and between a0f8fbf and 0e19642.

📒 Files selected for processing (10)
  • cndocs/animated.md
  • cndocs/animations.md
  • cndocs/interactionmanager.md
  • cndocs/modal.md
  • cndocs/panresponder.md
  • cndocs/performance.md
  • cndocs/scrollview.md
  • cndocs/statusbar.md
  • cndocs/timers.md
  • cnwebsite/sidebars.ts
💤 Files with no reviewable changes (4)
  • cndocs/interactionmanager.md
  • cndocs/modal.md
  • cnwebsite/sidebars.ts
  • cndocs/timers.md

📝 Walkthrough

Walkthrough

The documentation removes InteractionManager pages and navigation, updates animation and gesture guidance to reference interaction handles and idle-time work, and removes or revises deprecated Modal, ScrollView, and StatusBar API documentation.

Changes

Documentation cleanup

Layer / File(s) Summary
InteractionManager documentation removal
cndocs/interactionmanager.md, cndocs/timers.md, cnwebsite/sidebars.ts
The InteractionManager documentation page, timers section, and API sidebar entry are removed.
Interaction and animation guidance updates
cndocs/animated.md, cndocs/animations.md, cndocs/panresponder.md, cndocs/performance.md
Interaction-handle descriptions are simplified, and animation guidance recommends requestIdleCallback for deferred JavaScript work.
Deprecated API reference cleanup
cndocs/modal.md, cndocs/scrollview.md, cndocs/statusbar.md
Deprecated Modal and StatusBar entries are removed, ScrollView tap values are narrowed to the current enum, and StatusBar examples and API descriptions are updated.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: removing deprecated APIs from the Chinese docs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch auto-translate-20260712

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sunnylqm sunnylqm merged commit efa3449 into production Jul 12, 2026
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant