MessageFlashList

This component is still experimental. Please test thoroughly before using it in production.

This component is available since version 8.6.2 of the SDK.

The MessageFlashList component serves as a drop-in alternative to our MessageList which uses FlashList under the hood, if installed. It provides a more performant variant that should increase state-update throughput, improve scrolling behaviour and stress out the JS thread a lot less in general. It also improves memory consumption significantly over FlatList, as well as having much more stable MVCP. It uses recycling as a virtualization technique and is maintained by a very talented team at Shopify.

It accepts the same props and UI component overrides as our MessageList does, except for the additionalFlatListProps one which has its own additionalFlashListProps alternative.

Support is added versions 2.1.0 and onwards of the library.

Before measuring performance, please make sure to adhere to their official recommendations.

Even though it is technically supported, it is neither necessary nor recommended to use MessageFlashList with the maximumMessageLimit prop. Due to how recycling works, the list becomes unstable MVCP-wise whenever this is done. It might be extended in the future to use a more sophisticated way of pruning (that would not get in the way), or simply removed as a prop.

© Getstream.io, Inc. All Rights Reserved.