Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android when the message is very long does not scroll correctly #2084

Closed
hareshmabbly opened this issue Apr 28, 2023 · 3 comments
Closed

Android when the message is very long does not scroll correctly #2084

hareshmabbly opened this issue Apr 28, 2023 · 3 comments

Comments

@hareshmabbly
Copy link

Describe the bug
Currently when we have long messages in message list then list scroll become laggy and this issue happens only on android in ios everything works fine from our side we tried to made few changes to optimize the performance one of them is changing FlatList to FlashList but no much improvement happen.

Dev environment info (please complete/provide the following information):

  • Package version : "stream-chat-expo": "5.12.0",
  • expo version : "expo": "^48.0.7",
  • Device/Emulator : Android (any android device we tested in z4 fold and samsung S series)
  • Offline support enabled No

To Reproduce

  1. Create any group chat.
  2. Add 50+ messages where most of the messages should be long like more then 1000 words.
  3. Try to scroll list and then try to scroll only long message you will see the laggy behaviour.
  4. Make sure above all are performed in Android device only because in ios everything seems fine.

Expected behavior
MessageList should not lag

screen-recording-20230319-174015-t21-connect_qTl9cmKR.mp4

in android device.

@vanGalilea
Copy link
Contributor

@hareshmabbly thanks for reaching out. We will have a look at that!
Which RN version are you using?

@hareshmabbly
Copy link
Author

Currently we are using "react-native": "^0.71.7", version

@vishalnarkhede
Copy link
Contributor

@hareshmabbly not sure if its still relevant, but this was a known issue in react-native for inverted flatlist. Although it has been fixed in RN 0.72.4 so please make an upgrade. facebook/react-native#30034 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants