# AttachButton

Component to render a button to open the attachment picker, within the [`MessageInput`](https://getstream.io/chat/docs/sdk/react-native/v4/ui-components/message-input/).
This is the default component provided to the prop [`AttachButton`](https://getstream.io/chat/docs/sdk/react-native/v4/core-components/channel/#attachbutton) on the `Channel` component.

## Props

### disabled

True if channel is [frozen](https://getstream.io/chat/docs/javascript/disabling-channels/) and [disableIfFrozenChannel](https://getstream.io/chat/docs/sdk/react-native/v4/core-components/channel/#disableiffrozenchannel) is true.

| Type    |
| ------- |
| boolean |

### handleOnPress

`onPress` handler for this button.

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

---

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