You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing an issue when showAvatarForEveryMessage = false while sending multiple message from same user. On message in which avatar is hidden takes default image size which is height = 36 and width = 36. So UI is getting misaligned.
Steps to Reproduce / Code Snippets
showAvatarForEveryMessage = false
decrease avatar size to height 15 and width 15
Send multiple message from same user
Expected Results
Expected result is the bubble should be alined
The text was updated successfully, but these errors were encountered:
Just dive deeper into the code. It's hard to customize the avatar size, the best way I can think of is to patch the lib. Since the Avatar component just returns the GiftedAvatar when showAvatarForEveryMessage is false (ref). In addition, GiftedAvatar and renderAvatar use the same style (containerStyle and imageStyle), and we can't customize GiftedAvatar component without style conflict.
IMO, in order to customize the size of avater, the lib should allow us to customize the GiftedAvatar component.
I'm facing an issue when showAvatarForEveryMessage = false while sending multiple message from same user. On message in which avatar is hidden takes default image size which is height = 36 and width = 36. So UI is getting misaligned.
Steps to Reproduce / Code Snippets
showAvatarForEveryMessage = false
decrease avatar size to height 15 and width 15
Send multiple message from same user
Expected Results
Expected result is the bubble should be alined
The text was updated successfully, but these errors were encountered: