# InputButtons

> **Info:** This is documentation for **Stream Chat React Native SDK v5**, which is no longer actively maintained. For up-to-date documentation, see the [latest version (v10)](https://getstream.io/chat/docs/sdk/react-native/).

Component to render the `AttachButton` and the `CommandsButton` on the left side of the input box within [`MessageInput`](https://getstream.io/chat/docs/sdk/react-native/v5/ui-components/message-input/).

This is the default component provided to the prop `InputButtons` on the [`Channel`](https://getstream.io/chat/docs/sdk/react-native/v5/core-components/channel/#inputbuttons) component.

## Props

### `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 |

### `hasCommands`

Enable commands on the [`MessageInput`](https://getstream.io/chat/docs/sdk/react-native/v5/ui-components/message-input/) component.

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

### `hasFilePicker`

Enable the file picker on the [`MessageInput`](https://getstream.io/chat/docs/sdk/react-native/v5/ui-components/message-input/) component.

| Type    | Default |
| ------- | ------- |
| Boolean | `true`  |

### `hasImagePicker`

Enable the image picker on the [`MessageInput`](https://getstream.io/chat/docs/sdk/react-native/v5/ui-components/message-input/) component.

| Type    | Default |
| ------- | ------- |
| Boolean | `true`  |

### `openCommandsPicker`

Opens the commands picker box. By default, this function is attached to `onPress` handler for [`CommandsButton`](https://getstream.io/chat/docs/sdk/react-native/v5/core-components/channel/#commandsbutton).

| Type     |
| -------- |
| Function |

### `selectedPicker`

Value is `images` (string), when image attachment picker is open. Value will be `undefined` if file picker is active or file picker is open.

| Type                  |
| --------------------- |
| 'images' \| undefined |

### `setShowMoreOptions`

Setter function for [`showMoreOptions`](https://getstream.io/chat/docs/sdk/react-native/v5/contexts/message-input-context/#showmoreoptions).

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

### `showMoreOptions`

Represents the expanded or collapsed state for attach and commands button, next to input box.

| Type    |
| ------- |
| Boolean |

### `text`

Text message entered by user in underlying [`TextInput`](https://reactnative.dev/docs/textinput) within `MessageInput` component.
This value is attached to `TextInput`'s [`value prop`](https://reactnative.dev/docs/textinput#value)

| Type   |
| ------ |
| String |

### `toggleAttachmentPicker`

Function to toggle attachment picker. By default, this function is attached to `onPress` handler for [`AttachButton`](https://getstream.io/chat/docs/sdk/react-native/v5/core-components/channel/#attachbutton).

| Type     |
| -------- |
| Function |

## UI Component Props

### `AttachButton`

Component to render the attach button next to input box.

| Type          | Default                                                                       |
| ------------- | ----------------------------------------------------------------------------- |
| ComponentType | [`AttachButton`](https://getstream.io/chat/docs/sdk/react-native/v5/ui-components/attach-button/) |

### `CommandsButton`

Component to render button next to input box, which when pressed opens commands list.

| Type          | Default                                                                           |
| ------------- | --------------------------------------------------------------------------------- |
| ComponentType | [`CommandsButton`](https://getstream.io/chat/docs/sdk/react-native/v5/ui-components/commands-button/) |

### `MoreOptionsButton`

Component to render a button within enclosed MessageInput, which when pressed shows more options such as AttachButton, CommandsButton.

| Type          | Default                                                                                  |
| ------------- | ---------------------------------------------------------------------------------------- |
| ComponentType | [`MoreOptionsButton`](https://getstream.io/chat/docs/sdk/react-native/v5/ui-components/more-options-button/) |

---

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/v5/ui-components/input-buttons/](https://getstream.io/chat/docs/sdk/react-native/v5/ui-components/input-buttons/).