stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

Add support for LegendList in MessageList

Open arekkubaczkowski opened this issue 6 months ago • 0 comments

Motivation While the library already allows swapping out the list component, LegendList handles list inversion differently, which makes it incompatible out of the box for chat UIs. Proper support would require internal adjustments, especially around how inverted lists are handled (e.g. scroll anchoring, loading more messages, maintaining scroll position).

I’ve tested LegendList with a chat view and the performance improvement is significant — smoother scrolling and much lower render times on large message lists.

Suggestion: Provide a wrapper or internal integration that handles LegendList’s inversion model and maps the expected props accordingly. Even basic support would unlock better performance for many apps.

arekkubaczkowski avatar May 16 '25 06:05 arekkubaczkowski