ListView Headers do not Stick inside ScrollView
See original GitHub issueThe desired interaction is:
- a list with sticky section headers
- pull down at the top to refresh
When a ListView with sticky headers is placed within a ScrollView, the headers lose their “stick”:
<ScrollView
refreshControl={
<RefreshControl
...
/>
>
<ListView
dataSource={...}
renderRow={...}
renderSectionHeader={...} // these renderables no longer stick!
/>
</ScrollView>
This was also called out on a separate issue a while ago, but it looks like an issue was never created. So here we go!
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Making a middle element to get stuck in the header ...
I want to make an element that is shown in the middle of ScrollView (or ListView ) at the first and then gets...
Read more >Lists and grids | Jetpack Compose
Caution: Experimental APIs can change in the future or may be removed entirely. The 'sticky header' pattern is helpful when displaying lists of...
Read more >Telerik Listview Sticky Header not working correctly on iOS side
I want to use a sticky header listview. I using the following code to render the sticky header list. XML page code:.
Read more >How to create a table with vertically sticky header and ... - MSDN
Try to create four Grid s to set the layout and use ScrollView to achieve scrolling. A Grid wraps the three others like:...
Read more >StickyListHeaders alternatives and similar packages
If you are using a transparent action bar the following getter+setter will be very helpful. Use them to set the position of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, I did not realize that ListView has access to all of the props available on ScrollView. I see that now in the documentation. I just tried setting
refreshControl
directly on ListView and was able to achieve the desired interaction. Thank you @brentvatne !Is there any solution for sticky header not working inside scroll view?