# PollResults

A component used to render a list of all of the votes per option that a `Poll` has. Each option will display the 5 most recent votes. If an option has more than 5 votes it will add a button at the bottom that opens the [`PollOptionFullResults`](/chat/docs/sdk/react-native/v6/ui-components/poll-option-full-results/) Modal. Needs to be structured inside a [`Channel` component](/chat/docs/sdk/react-native/v6/core-components/channel/).

It will render its default `PollResultsContent`, which can be overridden for custom UI. Its children have access to the entire `poll` state through the `usePollState` hook.

## General Usage

```tsx
import {
  OverlayProvider,
  Chat,
  Channel,
  PollResults,
} from "stream-chat-react-native";

const App = () => {
  return (
    <OverlayProvider>
      <Chat client={client}>
        <Channel channel={channel}>
          <PollResults message={message} poll={poll} {...otherOptionalProps} />
        </Channel>
      </Chat>
    </OverlayProvider>
  );
};
```

## Props

### message

<partial id="chat-sdk/react-native/v6/_partials/common-content/contexts/message-context/message"></partial>

### `poll` \*

<partial id="chat-sdk/react-native/v6/_partials/common-content/contexts/poll-context/poll"></partial>

### `additionalScrollViewProps`

A prop used to override the underlying [`ScrollView`](https://reactnative.dev/docs/scrollview#props) props of the `PollResults`.

```jsx
const flatListProps = { bounces: true };

<PollResults additionalFlatListProps={flatListProps} />;
```

| Type   |
| ------ |
| object |

### `PollResultsContent`

A `Component` prop used to render the content of the `PollResults` component.

The component has full access to the entire `Poll` reactive state through the `usePollState` hook.

| Type          | Default                                                                                                                             |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| ComponentType | [`PollResultsContent`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Poll/PollResults.tsx) |

#### Usage

```tsx
import { Text } from "react-native";
import {
  OverlayProvider,
  Chat,
  Channel,
  PollResults,
  usePollState,
} from "stream-chat-react-native";

const MyPollResultsContent = () => {
  const { options } = usePollState();
  return options.map((option) => <Text>{option.id}</Text>);
};

const App = () => {
  return (
    <OverlayProvider>
      <Chat client={client}>
        <Channel channel={channel}>
          <PollResults
            message={message}
            poll={poll}
            PollResultsContent={MyPollResultsContent}
          />
        </Channel>
      </Chat>
    </OverlayProvider>
  );
};
```

---

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

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/v6/ui-components/poll-results/](https://getstream.io/chat/docs/sdk/react-native/v6/ui-components/poll-results/).