Modal with modalPresentationStyle=OptionsModalPresentationStyle breaks Navigation.push if opened In parallel

未关闭
#8,248 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
react-native
领域
mobile

调研方向

从链接的复现仓库 wix-rnn-modal-bug1 开始,使用启用 Fabric 的 React Native Navigation 8.7.5 重现间歇性故障。跟踪并行的 modal 和 Navigation.push 序列;当 screen 无需等待 modal 打开即可稳定地被 push(包括报告中的 iOS 环境)时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

🏚 stale platform: iOS type: accepted/bug
What happened?

Navigation.showModal modalPresentationStyle:OptionsModalPresentationStyle.overCurrentContext is broken when trying to push the new screen in parallel

https://github.com/user-attachments/assets/035836b0-38b4-4903-a52b-524d5a658bcd

https://github.com/user-attachments/assets/13cc987f-6c6e-47bd-993e-51741cfd495f

What was the expected behaviour?

It should work corretly and push a screen even without waiting for modal to open

Was it tested on latest react-native-navigation?
  • I have tested this issue on the latest react-native-navigation release and it still reproduces.
Help us reproduce this issue!

repo - https://github.com/Belobopka/wix-rnn-modal-bug1 sometimes it works but one in 10 cases

In what environment did this happen?

React Native Navigation version: 8.7.5
React Native version: 0.80.3
Has Fabric (React Native's new rendering system) enabled: (yes/no) YES
Node version: 20.19.6
Device model: IPhone 15 pro
iOS version: 18.1(but I think it reproducible on more newer versions)

主要语言
MDX
星标
13.2k
派生
2.6k
平均合并
2 天 10 小时
30 天内合并 PR
6

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

wix/react-native-navigation 的其他 Issue

查看 wix/react-native-navigation 的全部 Issue

相似的 Issue

更多 Mobile Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。