# useChannelPreviewPollLabel

Builds a localized poll activity label for channel preview rows.

## Best Practices

- Use this hook only when poll previews are shown in channel list items.
- Pass a stable `pollId` value to avoid unnecessary recomputation.
- Handle empty return values when no votes are available yet.
- Rely on built-in translation output for user-facing copy consistency.
- Keep poll metadata rendering minimal in list UI.

## Usage

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

const PollPreviewLabel = ({ pollId }: { pollId: string }) => {
  const label = useChannelPreviewPollLabel({ pollId });
  return label ? <Text>{label}</Text> : null;
};
```

## Parameters

| Name   | Type     | Required | Description                     |
| ------ | -------- | -------- | ------------------------------- |
| pollId | `string` | Yes      | Identifier of the poll to read. |

## Returns

| Type                    | Description                                                     |
| ----------------------- | --------------------------------------------------------------- |
| `string` \| `undefined` | Localized label such as `You voted: Option A` when data exists. |


---

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

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