# ThreadListItemContext

`ThreadListItemContext` is provided by [`ThreadListItem`](/chat/docs/sdk/react-native/v8/ui-components/thread-list-item/). If you are not familiar with the React Context API, see the [React docs](https://reactjs.org/docs/context.html).

`ThreadListItemContext` must be used within [`ThreadList`](/chat/docs/sdk/react-native/v8/ui-components/thread-list/) because it depends on [`ThreadsContext`](/chat/docs/sdk/react-native/v8/contexts/threads-context/).

## Best Practices

- Use `useThreadListItemContext` inside thread list items only.
- Keep per-item rendering lightweight to preserve scroll performance.
- Use `dateString` for consistent timestamps.
- Handle `ownUnreadMessageCount` as a badge, not a control.
- Avoid extra API calls; use the provided `thread` and `parentMessage`.

## Basic Usage

Consume `ThreadListItemContext` in any child of `ThreadList`:

```tsx
import { useContext } from "react";
import { ThreadListItemContext } from "stream-chat-react-native";

const value = useContext(ThreadListItemContext);
```

Alternatively, use the `useThreadListItemContext` hook.

```tsx
import { useThreadListItemContext } from "stream-chat-react-native";

const value = useThreadListItemContext();
```

## Value

### `channel`

Channel instance from the Stream Chat client.

| Type                                                |
| --------------------------------------------------- |
| [Channel](/chat/docs/javascript/creating_channels/) |


### `dateString`

A formatted date string for the thread timestamp. Default format: `HH:MM`.

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

### `lastReply`

Latest reply message in the thread.

| Type           |
| -------------- |
| `LocalMessage` |

### `ownUnreadMessageCount`

Unread message count for the thread.

| Type   |
| ------ |
| number |

### `parentMessage`

Parent message of the thread.

| Type           |
| -------------- |
| `LocalMessage` |

### `thread`

Instance of [`Thread`](https://github.com/GetStream/stream-chat-js/blob/master/src/thread.ts) used to read more data or pass to `onThreadSelect`.

| Type   |
| ------ |
| Thread |


---

This page was last updated at 2026-04-17T17:33:45.034Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/v8/contexts/thread-list-item-context/](https://getstream.io/chat/docs/sdk/react-native/v8/contexts/thread-list-item-context/).