showAvatarForEveryMessage prop doesn't work when I set the value to true
<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 }} />
Avatar to show on every message.
@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.
Most helpful comment
@hironarita I think it's just
src/Avatar.jsbut I might be wrong.