React-native-collapsible: VirtualizedList in the accordion component

Created on 17 Jun 2019  路  9Comments  路  Source: oblador/react-native-collapsible

Hi guys,

Thanks for your work!

Was just wondering why no VirtualizedList or one of it's implementations like FlatList is used in the accordion component?

Using a VirtualizedList has performance gains for long lists and afaik no negative impact for short ones.

Or am I missing something why a VirtualisedList shouldn't be used here?

Cheers,
Andreas

Most helpful comment

I've already started working on it. Just having some issues with content changing within the collapsible. https://github.com/iRoachie/collapse/blob/master/Accordion.tsx#L113

All 9 comments

Yeah, I think I will have to move out from this lib because of this

@iRoachie hi any plans for using Flatlist in Accordion? Also would you consider using react-native-reanimated? It might fix my problem about using react-navigation #297

I've already started working on it. Just having some issues with content changing within the collapsible. https://github.com/iRoachie/collapse/blob/master/Accordion.tsx#L113

@iRoachie :(

Any news?

I haven鈥檛 been getting it to work, have to try some new approach

@iRoachie What problems did you run into/where did it break?

@libeanim The recalculation after an element inside changes

Any updates about this? I'm having some trouble with a FlatList and a collapsible component :(

Released as opt-in prop in 1.6.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jiyarong picture jiyarong  路  8Comments

Korysam15 picture Korysam15  路  4Comments

abdulkhaliquem9 picture abdulkhaliquem9  路  5Comments

xxstefanoxx picture xxstefanoxx  路  4Comments

rrajasek92 picture rrajasek92  路  5Comments