# ShowThreadMessageInChannelButton

Component to render a checkbox (labeled "Also send to channel"), within the [`Thread`](https://getstream.io/chat/docs/sdk/react-native/v5/ui-components/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`](https://getstream.io/chat/docs/sdk/react-native/v5/core-components/channel/#showthreadmessageinchannelbutton) on the `Channel` component.

## Props

### `allowThreadMessagesInChannel`

Display the _Show thread message in channel_ button inside the thread MessageInput.

| Type    | Default |
| ------- | ------- |
| boolean | true    |

### `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`](https://getstream.io/chat/docs/sdk/react-native/v5/contexts/message-input-context/#setsendthreadmessageinchannel).

| Type                                   |
| -------------------------------------- |
| `(sendThreadMessageInChannel) => void` |

---

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/v5/ui-components/show-thread-message-in-channel-button/](https://getstream.io/chat/docs/sdk/react-native/v5/ui-components/show-thread-message-in-channel-button/).