Repository navigation
docs(cndocs): sync gap/translate percentage, Platform isDisableAnimations, LayoutAnimation - #1047
Conversation
…leAnimations, LayoutAnimation admonition - layout-props: columnGap/gap/rowGap accept numbers or percentage strings (New Architecture) - flexbox: gap percentage note; transforms: translateX/translateY number|string + percentage paragraph - platform: add isDisableAnimations constant + section - layoutanimation: Android Legacy vs New Architecture admonition - animated: SnackPlayer supportedPlatforms=ios,android - cnwebsite: bump docusaurus-plugin-sass 0.2.7, plugin-oxc 0.2.3, @types/react 19.2.18, sass 1.105.1
❌ Deploy Preview for reactnativecn failed. Why did it fail? →
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to No actionable issue is established for the documentation and website updates; they are mergeable subject to normal checks. Pre-merge checks |
|
- 78 个属性段描述译为中文,术语与 flexbox.md 等已译文档保持一致 - 代码块、属性名/值、枚举、类型表、URL、锚点保留英文原文
翻译同步(2026-10-12)
上游合并:
facebook/react-native-websitemain → production(含 gap/transform 百分比支持、PlatformisDisableAnimations、LayoutAnimation 说明重写、Animated SnackPlayer 平台标注;另有 dependabot 依赖 bump)。翻译文件(6 个,均有真实漂移)
columnGap/gap/rowGap改为"接受数值(点)或百分比字符串,新架构支持百分比",类型表number→number, stringtranslateX/Y: number→number | stringconstants表新增isDisableAnimations行;新增isDisableAnimations小节(含isTesting回退、Android 系统属性说明):::note——旧架构需UIManager手动启用(全局一次即可),新架构自动启用(no-op)supportedPlatforms=ios,android百分比相关链接统一用
[新架构](/architecture/landing-page)(与 textinput.md 等现有 CN 译法一致),未照搬 EN 的[New Architecture]英文写法。colors.md为误报:上游仅拼写修正(same like → same as),CN 译文"与……一致"已涵盖,无需改动。website/ → cnwebsite/ 配置同步
cnwebsite/package.json:docusaurus-plugin-sass ^0.2.6→^0.2.7、@prettier/plugin-oxc ^0.2.2→^0.2.3、@types/react 19.2.17→19.2.18、sass 1.102.0→1.105.1package.json的 eslint/typescript-eslint 调整不影响 cnwebsite(无对应字段)验证
yarn build(cnwebsite)通过,175s;仅存 linking/appregistry 历史 HTML minifier 警告,与本次改动无关本次无 Expo 相关内容,无需处理不 promote Expo 差异点。
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit