Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick back gestures can cause screens to get stuck in a bad state on iOS #2454

Open
brentvatne opened this issue Oct 26, 2024 · 1 comment
Open
Assignees
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided

Comments

@brentvatne
Copy link
Contributor

brentvatne commented Oct 26, 2024

Description

ScreenRecording_10-25-2024.17-52-06_1.MP4

It's hard to see exactly what is happening here because doesn't show my touches, sorry!

I navigate from Screen A to B by pressing the button. Then I go from B to C (modal). Then I go back from that, in one of two ways:

  1. The first time, I do it by dismissing the modal with the X button. This works well.
  2. The second time, I swipe down the modal and immediately after releasing that gesture I start swiping the back gesture to go back from the underlying stack. When I do this, you'll notice that the header transitions to Screen A as expected, but the screen contents are stuck on screen B and non-interactable. You are now stuck here. This happens in both debug and release builds. I have trouble reproducing it in a simulator because you cannot swipe easily, so you should use a physical device.

Steps to reproduce

Steps provided in the description above!

Snack or a link to a repository

https://github.com/brentvatne/screens-new-arch-repro

Screens version

4.0.0-beta.14

React Native version

0.76.0

Platforms

iOS

JavaScript runtime

Hermes

Workflow

Expo bare workflow

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Real device

Device model

iPhone 13 mini

Acknowledgements

Yes

@github-actions github-actions bot added Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided labels Oct 26, 2024
@kkafar kkafar self-assigned this Oct 30, 2024
@radko93
Copy link
Contributor

radko93 commented Nov 7, 2024

I'm experiencing the same issue but for opposite reasons: clicking back button breaks the animation, gestures work just fine. This is on stable 4.0. Old architecture.

RocketSim_Recording_iPhone_16_6.1_2024-11-07_16.08.06.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided
Projects
None yet
Development

No branches or pull requests

3 participants