React-native-gifted-chat: Inverted = false causes message list to scroll-to-top on send

Created on 25 Jun 2018  路  7Comments  路  Source: FaridSafi/react-native-gifted-chat

Issue Description

Message list scrolls-to-top when submitting a new message when inverted={false}

Steps to Reproduce / Code Snippets

Set inverted={false}

Expected Results

The README says...

inverted (Bool) - Reverses display order of messages; default is true

... the message order is reversed as expected however it also causes the message list to scroll-to-top when a new message is entered which seems like the wrong behavior

Additional Information

  • Nodejs version: 8.10.0
  • React version: 16.3.0-alpha.1
  • React Native version: 0.54.4
  • react-native-gifted-chat version: 0.4.3
  • Platform(s) (iOS, Android, or both?): iOS
wontfix

Most helpful comment

Workaround I've used is to not set inverted and to reverse the order of the messages array before passing it to the messages prop.

All 7 comments

did u resolve it ? any solutions?

same problem here

I'm also facing this issue,Did u resolve it?@willdady

Same issue here! Anyone found a solution?

Workaround I've used is to not set inverted and to reverse the order of the messages array before passing it to the messages prop.

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.

Same issue here! Anyone found a solution?

Was this page helpful?
0 / 5 - 0 ratings