Can not push a screen after dismiss an overlay

未关闭
#7,546 9 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
20/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
react-native
领域
mobile

调研方向

首先在 React Native Navigation 7.28.0 中重现报告的操作序列:使用提供的选项显示 overlay,将其关闭,然后在 iOS 和 Android 上分别 push 一个 screen。跟踪关闭 overlay 后发生的情况:push 会记录 Profile 组件,但不会显示该组件;当关闭 overlay 后,被 push 的 screen 出现在 UI 中时,即表示完成。

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

描述

needs triage triage: bug

🐛 Bug Report

Can not push a screen after dismiss an overlay

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

To Reproduce

(Write your steps here:)

  1. Show an overlay using below code:
    Navigation.showOverlay({
    component: {
    name: modalName,
    options: {
    overlay: {
    interceptTouchOutside: true,
    handleKeyboardEvents: true,
    },
    layout: {
    componentBackgroundColor: COLORS.transparent,
    },
    },
    passProps,
    },
    });
  2. Dismiss overlay
  3. Push to a screen using Navigation.push(componentId, {.....})
  4. It shows Running "Profile" with {"rootTag":661,"initialProps":{"componentId":"Component14"}} but not push to this screen on the UI as my expectation.

Expected behavior

(Write what you thought would happen.)

Actual Behavior

(Write what happened. Add screenshots, if applicable.)

Your Environment

  • React Native Navigation version: 7.28.0
  • React Native version: 0.68.2
  • Platform(s) (iOS, Android, or both?): both ios and android
  • Device info (Simulator/Device? OS version? Debug/Release?): FILL THIS OUT

Reproducible Demo

(Paste the link to an example repo and exact instructions to reproduce the issue.)
Screen Shot 2022-06-22 at 00 14 38

Are you willing to resolve this issue by submitting a Pull Request?
  • ✅   Yes, I have the time, and I know how to start.
  • ✖️   Yes, I have the time, but I don't know how to start. I would need guidance.
  • ✖️   No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.
主要语言
MDX
星标
13.2k
派生
2.6k
平均合并
3 小时 21 分钟
30 天内合并 PR
5

环境准备

  • 没有 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 摘要。