There is a warning popping up for Android in which an inverted FlatList causes performance issues, and apparently SendBird uses this feature internally.
What I want then to render a certain amount of messages to avoid performance issues, but I can’t find any property of createGroupChannelFragment that does that.
Hello @omedranoc, this issue is known in React-Native core. It is affected by the length of the message text, not the number of messages.
Since we are a SDK operating on top of React-Native, we cannot provide any workaround patches or hacks that would compromise backward compatibility. Instead, we display a warning to alert users about this issue.
Currently, the options available are to follow the methods mentioned in the existing issue thread for applying a patch, customize the message component, or wait for a fix from the React-Native team.
Hi @Airen_Kang, thank you very much for taking the time to respond, and I understand what you are telling me.
The other question would be, if it is not at the level of length but at the level of number of messages, I see that when I use renderMessage, GroupChannelFragment is rendered for each message that is in a group channel, in the documentation is there information about pagination of messages, since so far I have searched and can’t find, or the pagination is automatic and handled by SendBird inside, I mention it in order to avoid that a group channel that has 10,000 messages, they are all rendered when opening that chat.
React Native 0.72.4 includes the performance fix! See comment on same issue referenced above.
In my early testing, I’m not seeing performance degradation in Android, but I don’t have any channels with a ton of conversations. Can someone with a richer test environment confirm?
Also @sendbird team, can we get the warning message removed for clients using React Native 0.72.4+?