FaridSafi / react-native-gifted-chat

💬 The most complete chat UI for React Native
https://gifted.chat
MIT License
13.53k stars 3.56k forks source link

Long text performance problem #2261

Open SamiAltuncu opened 2 years ago

SamiAltuncu commented 2 years ago

There is a long text performance problem. How do i solve this problem?

fansilva1991 commented 2 years ago

Hello, any updates on this? I'm facing the same issue here.

TeChn4K commented 1 year ago

I can confirm on react-native-gifted-chat@1.0.4 With multiple short text message, scroll is normal and snappy. But as soon as a long text bubble appears in the viewport (>100 words / >650 chars), scroll becomes laggy. Even the longpress copy text / cancel interface is slow.

rgommezz commented 1 year ago

It became an issue for Android 12 & 13 versions on RN 0.70, specifically for inverted lists.

This comment contains a fix you can apply to React Native VirtualizedList directly. Just use patch-package to create a patch file with the changes needed.

https://github.com/facebook/react-native/issues/30034#issuecomment-1374355184