-
Notifications
You must be signed in to change notification settings - Fork 423
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(#722): revert not working back navigation gesture in favour of PagerView inside ScrollView #919
Conversation
41a7e80
to
3e5ea73
Compare
This PR will be merged once we close this one: #918 |
|
||
<View> | ||
<TabView | ||
// TODO: Fix the height measurement for nested pager view |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove that TODO
@MateWW Could you check this PR https://github.com/callstack/react-native-pager-view/pull/771/files if this is the same thing? |
yup, just in my case we have additional example in app to test that scenario |
3e5ea73
to
18aed2e
Compare
…gerView inside ScrollView
18aed2e
to
0cf7d6f
Compare
Thank you 🙏 we will check that change once we test other PRs, which are already in a queue |
Summary
Resolves #722!
Issue
Currently scroll over legacy pager view is not working while nested inside scroll view.
Nesting might be necessary while we have big header which you don't want to be visible while you are swiping pages.
Root cause
The issue arise with 6.2.0 version and support for navigate back gesture.
Solution
I've tested that navigate back gesture and it didn't worked for me as you may see on attached video.
I've also checked if basic react native ScrollView supports that for horizontal mode and it's not.
Based on all above I believe it's not worth to block users and I reverted that change.
I think we can revisit that use case later and fix that long living regression.
Test Plan
2-pager-view-bug-fabric-ios.mp4
2-pager-view-fix-fabric-ios.mp4
2-pager-view-bug-paper-ios.mp4
2-pager-view-fix-paper-ios.mp4
Compatibility
Checklist