Feat rn pagecontainer#2484
Open
mackwang112 wants to merge 15 commits intomasterfrom
Open
Conversation
hiyuki
reviewed
May 9, 2026
- 将 page-container 从 RN 不支持列表中移除 - 修复 dom-tag-config.js 中 mpx-page-container 后缺少逗号导致后续标签无法识别的问题 - 将 useDisablePageBack 提取为组件外部的独立自定义 Hook - 修复 invokeRunOnJSRef.current.close 闭包过期问题,每次 render 同步更新 ref Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
hiyuki
reviewed
May 9, 2026
hiyuki
reviewed
May 9, 2026
- 修复 BackHandler 监听:使用 addEventListener 返回值的 .remove() 替代不存在的 removeEventListener - 修复闭包过期:通过 onBackPressRef 间接调用最新 close,抽离 addBackPressListener/removeBackPressListener - 修复 gestureEnabled 还原:记录初始值,仅在 show=true 时禁用,cleanup 时还原为初始值 - 优化手势识别:contentGesture 改为 activeOffsetY([0,0])+failOffsetX,screenGesture 改为 activeOffsetX([0,0])+failOffsetY+hitSlop+onUpdate - 优化 simultaneousWithExternalGesture:改为条件式,避免不必要调用 - 简化 usePreventRemove:删除无效死代码分支 - 删除未使用的 screenWidth 和 Dimensions 导入 - 补充 rnConfig.disableSwipeBack TS 类型定义 - 补充 application-api.md 中 page-container 章节文档 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.