[Android][ScrollView] Support sticky section headers on Android
These are just good for UX. Since the iOS RCTScrollView implements sticky headers (instead of using something provided by the system) I imagine it's doable on Android as well.
cc @sahrens heard you were working on ListView. Is this something on FB's roadmap?
Internally, I don't think we'll implement this until we have a client that wants it. I think the cases for sticky headers on android are probably more narrow: e.g. the design of many lists that might have sticky headers on iOS wouldn't on Android in keeping consistent with the platform (e.g. compare the contacts app on the two platforms), but I can see apps on Android (the schedule view in the F8 app comes to mind) where this would be nice.
I'd definitely also like to see this. Would it make sense to incorporate something like https://github.com/emilsjolander/StickyScrollViewItems
Or event to implement this as a 3rd party component, if it can't go in core?
@ojkelly Nice find. That's helpful to have an implementation as reference.
I'm usually in favor of standalone npm modules though in this case iOS's RCTScrollView already implements sticky headers and so far we (people I've talked to or have worked with) have found that narrowing the gap between platforms improves the developer experience (<3 Navigator). I think a reasonable first step would be for the component to start as an npm module that offers the same API as the existing ScrollView plus sticky headers, and then backport the implementation into core if it's good.
@ide - I believe @kmagiera is working on ListView too
+1
+1
+1
What @ide and @andrews said. Not going to build this ourselves since we have no need for it internally.
On Tuesday, November 17, 2015, Francis Chartrand [email protected] wrote:
+1
— Reply to this email directly or view it on GitHub https://github.com/facebook/react-native/issues/2700#issuecomment-157521966 .
+1
+1
Created a ProductPains issue for this: https://productpains.com/post/react-native/scrollview-sticky-section-headers-on-android/
It shouldn't be too hard to build, if you have some Android experience, just check out the iOS implementation in RCTScrollView and try to port it :)
+1
+1
+1
looking for it
+1
Still no implementation :( +1
+10086 (funny)
+1