# ThreadContext

`ThreadContext` is provided by [`Channel`](/chat/docs/sdk/react-native/v5/core-components/channel/) component. If you are not familiar with React Context API, please read about it on [React docs](https://reactjs.org/docs/context.html).

## Basic Usage

`ThreadContext` can be consumed by any of the child component of `Channel` component as following:

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

const value = useContext(ThreadContext);
```

Alternatively, you can also use `useThreadContext` hook provided by library to consume ThreadContext.

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

const value = useThreadContext();
```

## Value

### allowThreadMessagesInChannel ``

<partial id="chat-sdk/react-native/v5/_partials/common-content/ui-components/channel/props/allow_thread_messages_in_channel"></partial>

### `closeThread`

<partial id="chat-sdk/react-native/v5/_partials/common-content/contexts/thread-context/close_thread"></partial>

### loadMoreThread

<partial id="chat-sdk/react-native/v5/_partials/common-content/contexts/thread-context/load_more_thread"></partial>

### `openThread`

<partial id="chat-sdk/react-native/v5/_partials/common-content/contexts/thread-context/open_thread"></partial>

### `parentMessagePreventPress`

<partial id="chat-sdk/react-native/v5/_partials/common-content/contexts/thread-context/parent_message_prevent_press"></partial>

### `reloadThread`

<partial id="chat-sdk/react-native/v5/_partials/common-content/contexts/thread-context/reload_thread"></partial>

### setThreadLoadingMore

<partial id="chat-sdk/react-native/v5/_partials/common-content/contexts/thread-context/set_thread_loading_more"></partial>

### thread

<partial id="chat-sdk/react-native/v5/_partials/common-content/ui-components/channel/props/thread"></partial>

### threadHasMore

<partial id="chat-sdk/react-native/v5/_partials/common-content/contexts/thread-context/thread_has_more"></partial>

### threadLoadingMore

<partial id="chat-sdk/react-native/v5/_partials/common-content/contexts/thread-context/thread_loading_more"></partial>

### `threadMessages`

<partial id="chat-sdk/react-native/v5/_partials/common-content/contexts/thread-context/thread_messages"></partial>

---

This page was last updated at 2025-08-15T14:16:17.250Z.

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