# ThreadContext

`ThreadContext` is provided by [`Channel`](/chat/docs/sdk/react-native/v4/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/v4/_partials/common-content/core-components/channel/props/allow_thread_messages_in_channel"></partial>

### `closeThread`

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

### loadMoreThread

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

### `openThread`

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

### `reloadThread`

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

### setThreadLoadingMore

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

### thread

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

### threadHasMore

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

### threadLoadingMore

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

### `threadMessages`

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

---

This page was last updated at 2025-08-19T14:51:50.535Z.

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