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

[iOS] Unexpected Navigation Behavior When Swiping Back Quickly #2559

Open
Unuuuuu opened this issue Dec 9, 2024 · 3 comments
Open

[iOS] Unexpected Navigation Behavior When Swiping Back Quickly #2559

Unuuuuu opened this issue Dec 9, 2024 · 3 comments
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided

Comments

@Unuuuuu
Copy link

Unuuuuu commented Dec 9, 2024

Description

When using iOS devices with the following dependencies, swiping back quickly during stack navigation leads to unexpected behavior:

Expected behavior: stack a -> stack b -> stack c -> stack b -> stack a
Actual behavior: stack a -> stack b -> stack c -> stack b -> stack a -> stack b -> stack a
The issue occurs only when swiping back quickly. When swiping back slowly, the navigation works as expected.

Expected Behavior

expected-behavior.MP4

Actual Behavior

actual-behavior.MP4

Steps to reproduce

  1. Enable fullScreenGestureEnabled in the navigation options.
  2. Set up stack navigation with three screens: stack a, stack b, and stack c.
  3. Navigate through the stack in order: stack a -> stack b -> stack c.
  4. Swipe back quickly from stack c to stack b, and then quickly swipe back again from stack b to stack a.
  5. Observe the unexpected behavior.

Snack or a link to a repository

https://github.com/Unuuuuu/react-native-screens-repro

Screens version

4.3.0

React Native version

0.76.3

Platforms

iOS

JavaScript runtime

None

Workflow

Expo managed workflow

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Real device

Device model

iphone 15 pro

Acknowledgements

Yes

@github-actions github-actions bot added Repro provided A reproduction with a snack or repo is provided Platform: iOS This issue is specific to iOS labels Dec 9, 2024
@kkafar
Copy link
Member

kkafar commented Dec 9, 2024

Hey! Thanks for reporting. Would it be the same issue as: #2454? It seems similar

@Unuuuuu
Copy link
Author

Unuuuuu commented Dec 10, 2024

Hey! Thanks for reporting. Would it be the same issue as: #2454? It seems similar

Thank you for checking.

I don't think it's the same issue. The issue you mentioned is that when you make a quick gesture, it gets stuck in a bad state, and what I reported is that when you make a quick gesture, it briefly goes to an unintended screen and then returns to the intended screen.

@kkafar
Copy link
Member

kkafar commented Dec 11, 2024

Makes sense, we'll look into it

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

2 participants