# useIsDirectChat

Returns `true` when the channel is a direct chat (one other member besides the current user).

## Best Practices

- Use this hook to branch UI for DM vs group behaviors.
- Keep DM-specific logic centralized instead of scattering member checks.
- Rely on this hook for action labeling (chat/group) consistency.
- Avoid assuming channel type from `channel.type` alone.
- Treat the result as derived state and avoid local duplication.

## Usage

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

const isDirectChat = useIsDirectChat(channel);
```

## Parameters

| Name    | Type      | Required | Description                           |
| ------- | --------- | -------- | ------------------------------------- |
| channel | `Channel` | Yes      | Channel evaluated as direct vs group. |

## Returns

| Type      | Description                                |
| --------- | ------------------------------------------ |
| `boolean` | Whether the channel is a direct chat (DM). |


---

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

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/hooks/channel-list/use-is-direct-chat/](https://getstream.io/chat/docs/sdk/react-native/hooks/channel-list/use-is-direct-chat/).