Closed agmcleod closed 8 years ago
What platform is this?
@astreet ios. I haven't tested it on android, as i don't have that setup for this app.
Additionally I have a similar case on iOS where pagingEnabled supported at.
A horizontal ScrollView
is parent of a few ListViews
and pagingEnabled on the ScrollView
.
This ScrollView
does not let the child ListViews
scroll continuously, that is without paging.
It can be accepted that paging direction is deduced from the ScrollView direction, however better it is a explicit property. Currently ReactNative sets it for both directions.
It is certain that paging enabling should have explicit direction values like: pagingEnabled enum('horizontal', 'vertical', 'both')
Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/nested-scrollview-parent-has-paging-child-does-not-both-scrollviews-result-in-paging-enabled
ProductPains helps the community prioritize the most important issues thanks to its voting feature. It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix. We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.
https://rnplay.org/apps/U-k6oA
Can see the example here. The parent scrollview has
pagingEnabled={true}
, the child has it explicitly set to false. However, the child one has the page-snap to it when you try to scroll. The rnplay example is using 0.11, but i have this in my own app in version 0.12 as well.Sample code is here as well: