How to customize the message bubble max width in the Conversation #89
AhyoungRyu
announced in
Conversation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Versions
Summary
This guide explains how to customize the maximum width of message bubbles in the conversation view.
Guide & Snippet
iOS
Header
Android
Header
// code block
JS
Steps to Customize the Message Bubble Max Width
1. Understanding the default behavior
By default, message bubbles have a maximum width of
244px
in normal view and640px
in expanded view. You can customize this behavior by overriding theMessageBody
component using theIncomingMessageLayout
andOutgoingMessageLayout
systems.1. Simple Approach (Recommended)
The easiest way to customize the message bubble max width is to use the
maxBodyWidth
prop on the default MessageBody components:2. Full Customization of MessageBody
If you need more control over the message bubble styling beyond just the max width, you can create fully custom MessageBody components:
Reference
No response
Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions