-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Scroll to bottom (showing newest message) when calling prepend or concat earlier messages #1486
Comments
work perfect on ASUS_X00PD |
same issue - ios/android simulators |
@cicomint , I was struggling with the same issue. the fix is to do this : |
@deberoppa7 by doing that, you break the scrollToBottom functionality. So not recommended. |
any solution about this issue? |
@antoinefotso I had to remove some lines within GiftedChat.js, ended up downloading all the files and changing it to my needs... because i wanted to have both functionalities... the scrollToBottom, the append and also the scroll up to load more messages automatically... added all. I suggest you to do the same, otherwise you won't have all 3. |
try this one instead of concat Array.prototype.push.apply |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have the same problem. Does anyone have any other suggestions. push.apply doesn't help. |
Here is a hack untill this gets updated -- #1603 |
I used @deberoppa7 solution and disabled the scrollToBottom functionality. Thank you! |
Issue Description
When im updating list with prepend or concate method, the view is scrolling to bottom.
Steps to Reproduce / Code Snippets
Chat View
loadMoreContent function
if i replacing this line
with
i still get same result.
Expected Results
When scroll reach top of list, its fetching data update
listMessage
and stay in current scroll positionAdditional Information
The text was updated successfully, but these errors were encountered: