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

fix: take top stack view child from reactSubviews in gesture recogniction logic #1521

Merged
merged 9 commits into from
Jul 8, 2022

Conversation

kkafar
Copy link
Member

@kkafar kkafar commented Jul 8, 2022

Description

Fixes #1476

Changes

Replaced references to (RNSScreenView *)_controller.viewControllers.lastObject.view; with
_reactSubviews.lastObject in gesture recognition logic as it also handles modals & has "more up-to-date" value.

Screenshots / GIFs

Before

See the issue: #1476

After

Both using react-native-screens/native-stack & @react-navigation/native-stack:

Screen.Recording.2022-07-08.at.11.32.41.mov

Test code and steps to reproduce

{FabricTestExample,TestsExample}/Test1476

Checklist

@kkafar kkafar changed the title fix: take top stack view child from reactSubviews in gesture recogniser logic fix: take top stack view child from reactSubviews in gesture recogniction logic Jul 8, 2022
@kkafar kkafar marked this pull request as ready for review July 8, 2022 10:03
@kkafar kkafar merged commit 366eae9 into main Jul 8, 2022
@kkafar kkafar deleted the @kkafar/fix-1476 branch July 8, 2022 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IOS, Screens under modal screen can swipe back but modal still exist.
2 participants