-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ScrollView stickyHeaderIndices #3070
Comments
@chrisglein @randy-flynn tells me they need this feature for something inside office. My instinct is implementing this will be complex because we can't just leverage ListView, we'll likely need a new implementation based on comp animations, so we should get someone thinking about the design for this soon. |
StickyHeaderIndices are implemented using the event driven animation: it creates animated view with the scrollview's children at indcies cloned inside, the animated view does some Y translation and is hooked up with scrollView's onScroll event (with path ContentOffset -> Y) #2941 is tracking RNW's event driven animation implementation, I believe the StickyHeaderIndices should just work after event driven animation is done. |
@chrisglein @NickGerleman Any updates on this? |
Look like the issue will be solved by #11152 |
Not something we plan to address on the Paper renderer as we move towards Fabric. |
Split out from #2113
An array of child indices determining which children get docked to the top of the screen when scrolling. For example, passing
stickyHeaderIndices={[0]}
will cause the first child to be fixed to the top of the scroll view. This property is not supported in conjunction withhorizontal={true}
.Not directly supported by ScrollViewer. Seems difficult. Needs deep dive.
The text was updated successfully, but these errors were encountered: