Skip to content

Feat rn pagecontainer#2484

Open
mackwang112 wants to merge 15 commits intomasterfrom
feat-rn-pagecontainer
Open

Feat rn pagecontainer#2484
mackwang112 wants to merge 15 commits intomasterfrom
feat-rn-pagecontainer

Conversation

@mackwang112
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread packages/webpack-plugin/lib/template-compiler/compiler.js Outdated
mackwang112 and others added 2 commits May 9, 2026 15:19
- 将 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>
Comment thread packages/webpack-plugin/lib/runtime/components/react/mpx-page-container.tsx Outdated
Comment thread packages/webpack-plugin/lib/runtime/components/react/mpx-page-container.tsx Outdated
mackwang112 and others added 2 commits May 9, 2026 20:25
- 修复 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>
@mackwang112 mackwang112 added the platform:RN Mpx 跨端输出 RN label May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform:RN Mpx 跨端输出 RN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants