# Card

> **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 custom attachments within the [`MessageList`](https://getstream.io/chat/docs/sdk/react-native/v6/ui-components/message-list/).
Please check the guides for [Custom Attachment](https://getstream.io/chat/docs/sdk/react-native/v6/guides/custom-attachment/) for basic usage.

## Props

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

### `author_name`

Author name, to be rendered in footer of card.

| Type   |
| ------ |
| string |

### `image_url`

URL of image to render as cover image for card. In absence of `image_url`, `thumb_url` will be used for cover.

| Type   |
| ------ |
| string |

### `og_scrape_url`

URL to redirect to, when user presses on card.

| Type   |
| ------ |
| string |

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

### `text`

Text description for card, which will be rendered in footer of card.

| Type   |
| ------ |
| string |

### `thumb_url`

Thumbnail URL for cover image.

| Type   |
| ------ |
| string |

### `title`

Title for card, which will be rendered in footer of card

| Type   |
| ------ |
| string |

## UI Component Props

### `CardCover`

Component to render main body for [`Card`](https://getstream.io/chat/docs/sdk/react-native/v6/ui-components/card/) component which renders custom type of attachment.
Please check the guides for [Custom Attachment](https://getstream.io/chat/docs/sdk/react-native/v6/guides/custom-attachment/).

| Type          |
| ------------- |
| ComponentType |

### `CardFooter`

Component to render footer for [`Card`](https://getstream.io/chat/docs/sdk/react-native/v6/ui-components/card/) component which renders custom type of attachment. Please check the guides for [Custom Attachment](https://getstream.io/chat/docs/sdk/react-native/v6/guides/custom-attachment/).

| Type          |
| ------------- |
| ComponentType |

### `CardHeader`

Component to render header for [`Card`](https://getstream.io/chat/docs/sdk/react-native/v6/ui-components/card/) component which renders custom type of attachment. Please check the guides for [Custom Attachment](https://getstream.io/chat/docs/sdk/react-native/v6/guides/custom-attachment/).

| Type          |
| ------------- |
| ComponentType |

### `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/card/](https://getstream.io/chat/docs/sdk/react-native/v6/ui-components/card/).