React-native-gifted-chat: showAvatarForEveryMessage

Created on 7 Mar 2018  路  6Comments  路  Source: FaridSafi/react-native-gifted-chat

Issue Description

showAvatarForEveryMessage prop doesn't work when I set the value to true

Steps to Reproduce / Code Snippets

<GiftedChat showAvatarForEveryMessage={true} renderAvatarOnTop={true} showUserAvatar={true} renderBubble={(props: any) => this.renderBubble(props)} renderAvatar={(props: any) => this.renderAvatar(props)} renderInputToolbar={() => this.renderInputToolbar()} messages={this.mappedMessages} user={{ _id: this.props.RenterId }} />

Expected Results

Avatar to show on every message.

Additional Information

  • Nodejs version: 5.6.0
  • React version: 16.2.0
  • React Native version: 0.54.0
  • react-native-gifted-chat version: 0.3.0
  • Platform(s) (iOS, Android, or both?): Android
wontfix

Most helpful comment

@hironarita I think it's just src/Avatar.js but I might be wrong.

All 6 comments

@hironarita how are you ingesting the repo? I found that npm was serving me an outdated version which was causing this problem. Maybe an updated package need to be published?

@bhtruong93 Through npm. Did you fix the issue? Which files from npm do I have to replace?

@hironarita I think it's just src/Avatar.js but I might be wrong.

@bhtruong93 I replaced Avatar.js and it worked.

@FaridSafi There's an old version of Avatar.js on npm right now. Could you push the latest? Thank you.

@hironarita use version 0.4.3 and not 0.3.0. It contains the new showAvatarForEveryMessage prop.

$ npm i [email protected] --save

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

luisar picture luisar  路  3Comments

yogiben picture yogiben  路  3Comments

arayaryoma picture arayaryoma  路  3Comments

maharjanaman picture maharjanaman  路  3Comments

iamdurui picture iamdurui  路  3Comments