React-native-gifted-chat: when set alignTop={true}, message got cut off by messageContainer when scrolling

Created on 14 May 2019  路  10Comments  路  Source: FaridSafi/react-native-gifted-chat

Issue Description

when set alignTop={true}, messageContainer's height only set to match current messages, and when scrolling, message got cut off by messageContainer, for example, when only having less than full screen amount of messages.

Steps to Reproduce / Code Snippets

Expected Results

messageContainer should behaviour like alignTop={false}, occupies full space when scrolling.

Additional Information

recording

  • Nodejs version: v10.15.3
  • React version: 16.6.3
  • React Native version: v0.58.4
  • react-native-gifted-chat version: v0.8.2
  • Platform(s) (iOS, Android, or both?): both
  • TypeScript version: [FILL THIS OUT]
wontfix

Most helpful comment

Worked for me:
alignTop={false}
listViewProps={{contentContainerStyle: {flexGrow: 1, justifyContent: 'flex-end'}}}

All 10 comments

Same issue +1.

This still happens for me as well, any updates on this issue?

Anyone find a fix yet?

I just created a PR to resolve this issue. Hopefully it gets merged soon.
https://github.com/FaridSafi/react-native-gifted-chat/pull/1330

@daviswhitehead your PR didnt work for me, I commented on the PR. Thank you for attempting tho!!

I created a PR to resolve this issue.
I think it's because of ios's overscroll feature. so I made block it when alignTop = {ture}.

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 still exists and leads to bad UX. It should not be closed.
Can somebody please look into the mentioned PR? Thanks!

Worked for me:
alignTop={false}
listViewProps={{contentContainerStyle: {flexGrow: 1, justifyContent: 'flex-end'}}}

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

redwind picture redwind  路  3Comments

arayaryoma picture arayaryoma  路  3Comments

pentarex picture pentarex  路  3Comments

xcxooxl picture xcxooxl  路  3Comments

luisfuertes picture luisfuertes  路  3Comments