question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

showAvatarForEveryMessage

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
bhtruong93commented, Mar 7, 2018

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

1reaction
bhtruong93commented, Mar 7, 2018

@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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

DashChat class - dash_chat library - Dart API - Pub.dev
A complete chat UI which is inspired by react-native-gifted-chat Highly customizable and helps developing chat UI faster. Inheritance.
Read more >
reactjs-simple-gifted-chat - npm
Simple version of gifted chat UI for Web ReactJS. Latest version: 2.0.5, last published: a year ago. Start using reactjs-simple-gifted-chat ...
Read more >
react-native-gifted-chat - UNPKG
11, showAvatarForEveryMessage?: boolean;. 12, imageStyle?: LeftRightStyle<ImageStyle>;. 13, containerStyle?: LeftRightStyle<ViewStyle>;.
Read more >
GiftedChat displaying messages on left side of screen when ...
toString()} </Text> <GiftedChat renderInputToolbar={renderInputToolbar} renderBubble={renderBubble} showAvatarForEveryMessage={true} ...
Read more >
How do I hide the Android Keyboard when using React-Native ...
return( <GiftedChat messages={} showAvatarForEveryMessage={true} onSend={messages => onSend(messages)} user={{ _id:1, }} /> ).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found