React-native-collapsible: Accordion sticky headers

Created on 21 Feb 2018  路  2Comments  路  Source: oblador/react-native-collapsible

Is there a way to set the accordion headers sticky?
I'm creating a kind of checklist app with different groups to evaluate composed of different items.
My thinking is that the user might be able to always see on top of the screen the group that is evaluating (make the active header sticky at the top).

Current behavior:
demonstration

help wanted

Most helpful comment

react-native-collapsible doesn't support this feature internally, however we can use a combination of collapsible and React Native's SectionList component to get this behavior.

Here's the code and snack so you can see how it works https://snack.expo.io/BJ291g-OM.

sticky headers

All 2 comments

react-native-collapsible doesn't support this feature internally, however we can use a combination of collapsible and React Native's SectionList component to get this behavior.

Here's the code and snack so you can see how it works https://snack.expo.io/BJ291g-OM.

sticky headers

That's exactly what I was searching. Gonna use that until the component itself allow that behavior.
Thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings