Avatar for user is not working
See original GitHub issueWhen passing down messages based on Message Object defined in the documentation, avatar cannot be set for user. The same message object works fine for bot avatar, but I’d like to be able to add an avatar also for the user.
Example bot message object:
{
_id: generateMessageID(),
text: talk.response,
createdAt: new Date(),
user: {
_id: 2,
name: botName,
avatar: botAvatar
},
metadata: talk,
}
Example bot message object:
{
_id: generateMessageID(),
text: data.response_text,
createdAt: new Date(),
user: {
_id: 1,
name: userName,
avatar: userAvatar
},
metadata: data
}
- React Native version: 0.45.1
- react-native-gifted-chat version: 0.1.4
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
Profile avatar not working - WordPress.org
Hi, We have a custom image field (avatar) in the user profile. While we can upload and image and it replaces the gravatar...
Read more >How to Fix: Facebook Avatar Not Showing Up - YouTube
In this tutorial, we'll share a few approaches that you can try and fix the issue when your Facebook avatar is not working....
Read more >Bot Avatar and User Avatar images not working
Solved: Hi, Bot and User Avatar images are not working. Does anybody know how to fix this? Please refer to the below code...
Read more >Discord PY not getting user Avatar - Stack Overflow
I updated to V2 of Discord PY but avatars don't work, I am using all intents and its all set in developer portal....
Read more >Profile Photo/Avatar not showing up in Gmail - Google Support
It shows when I login, and it shows up as my profile photo in the email thread, but to other Gmail users (including...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Scratch that ^ I think you’re right that this is just a bug. It makes intuitive sense that if you provide an avatar for the current user, it should be rendered.
Fixed in https://github.com/FaridSafi/react-native-gifted-chat/pull/511