Skip to main content
Version: v4

SendButton

Component to render the send button with the MessageInput component. This is the default component provided to the prop SendButton on the Channel component.

Props

overrides the value from ChannelContext
disabled

True if channel is frozen and disableIfFrozenChannel is true.

Type
boolean

overrides the value from MessageInputContext
giphyActive

True if a user selects the giphy command from commands list (which is shown when you type a / in the input box). This value is set back to false when the user sends the message for searching Giphy.

Type
boolean

overrides the value from MessageInputContext
sendMessage

Sends a composed message within MessageInput component to channel. This function is attached to onPress handler of SendButton. The message optimistically gets added to message list UI first, before actually making API call to server. During this intermediate stage, MessageStatus component will display an indicator for "pending" state.

Type
function

Did you find this page helpful?