-
-
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
load new messages and keep scroll position #1603
Comments
@antoinefotso how did you solve it? |
@hungtd97 important: its not recommend to modify directly node_modules because re installing to modified repo will overwrite your changes |
Thanks for your advices. I’ve done with it but got other trouble when send a message, list view wont scroll to the bottom, I need to scroll by my hand. Do you know why? |
I've created a pull request, that fixes this issue -- #1677. But until it gets reviewed and published in the new version you can do a hack by extending the component.
In the code above, I just extend the GiftedChat component and override the onSend function and componentDidUpdated lifecycle. This utilizes the This way if Here is how i call it:
|
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. |
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. |
My solution has come from the prop First add the package to your project then apply the patch with patch-package:
Otherwise you can manually replace the Flatlist import in |
how to load new messages received from backend without scroll to bottom ( keep scroll position ) so user can scroll to bottom manually or click to scroll to bottom component
The text was updated successfully, but these errors were encountered: