This is documentation for Stream Chat React Native SDK v3, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v5).

ShowThreadMessageInChannelButton

Component to render a checkbox (labeled “Also send to channel”), within the Thread component. When this checkbox is checked by users, message sent as thread reply also gets added to parent channel’s message list.

This is the default component provided to the prop ShowThreadMessageInChannelButton on the Channel component.

Props

allowThreadMessagesInChannel

Display the Show thread message in channel button inside the thread MessageInput.

TypeDefault
booleantrue

sendThreadMessageInChannel

This value is only applicable to Thread component. When value sendThreadMessageInChannel is true, message gets sent from MessageInput component with property show_in_channel: true. This value is attached to the checkbox (with label “Also Send To Channel”) in MessageInput component within Thread component.

Type
boolean

setSendThreadMessageInChannel

Setter function for setSendThreadMessageInChannel.

Type
(sendThreadMessageInChannel) => void

© Getstream.io, Inc. All Rights Reserved.