# Giphy

> **Info:** This is documentation for **Stream Chat React Native SDK v6**, 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 Giphy attachments within the [`MessageList`](https://getstream.io/chat/docs/sdk/react-native/v6/ui-components/message-list/).

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

## Props

### `attachment`

Attachment object for `giphy` type attachment.

| Type   |
| ------ |
| Object |

### `additionalPressableProps`

Additional props provided to the underlying [Pressable](https://reactnative.dev/docs/pressable#props) used by components within a message such as [`MessageContent`](https://getstream.io/chat/docs/sdk/react-native/v6/ui-components/message-content/).

| Type   |
| ------ |
| object |

### `handleAction`

Function to send an attachment action on message. For example, in case of `giphy` type attachments, there are 3 actions available - Shuffle, Cancel, Send.

| Type                                       |
| ------------------------------------------ |
| `(name: string, value: string) => Promise` |

### `onLongPress`

Default long press handler for message UI.

| Type     |
| -------- |
| function |

### `onPress`

Default press handler for message UI.

| Type     |
| -------- |
| function |

### `onPressIn`

Default `pressIn` handler for message UI.

| Type     |
| -------- |
| function |

### `setSelectedMessage`

Setter for value [`selectedMessage`](https://getstream.io/chat/docs/sdk/react-native/v6/contexts/image-gallery-context/#selectedmessage).

| Type                                                             |
| ---------------------------------------------------------------- |
| `(selectedMessage: {messageId?: string; url?: string;}) => void` |

### `setMessages`

Setter for value [`messages`](https://getstream.io/chat/docs/sdk/react-native/v6/contexts/image-gallery-context/#messages).

| Type                                                                                                                                                              |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `(messages: [MessageType](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/hooks/useMessageList.ts)[]) => void` |

### `setOverlay`

Setter for [`overlay`](https://getstream.io/chat/docs/sdk/react-native/v6/contexts/overlay-context/#overlay). You can use this setter to show the overlay.

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

## UI Component Props

### `ImageComponent`

Drop in replacement of all the underlying [`Image`](https://reactnative.dev/docs/next/image) components within SDK.
This is useful for the purpose of offline caching of images. Please check the [Offline Support Guide](https://getstream.io/chat/docs/sdk/react-native/v6/basics/offline-support/) for usage.

| Type          | Default                                            |
| ------------- | -------------------------------------------------- |
| ComponentType | [`Image`](https://reactnative.dev/docs/next/image) |

---

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