Skip to content

Commit

Permalink
fix: update docs with guide on how to enable polls
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Oct 31, 2024
1 parent 78ed78d commit 7b155d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions docusaurus/docs/reactnative/guides/custom-poll-flow.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ In this cookbook we'll go over how we can create and customize a `Channel` scree

This cookbook assumes that you've already set up a screen that is able to display a `Channel` with a `MessageList` inside. As `poll`s are tightly coupled with messages, we need to have this working before we add the `poll` message type.

Polls are disabled by default and can be enabled through the Stream Dashboard by toggling the `Poll` button.

![Enable Polls](../assets/guides/custom-poll-flow/enable-polls.png)

Doing that will include the `Poll` button in your attachment picker:

![Enable Polls](../assets/guides/custom-poll-flow/attachment-picker-poll-button.png)

It also assumes that you have a functioning `chatClient` that is used elsewhere.

For illustration purposes, we are going to be using the `React Navigation` library for navigation (however, any navigation library can be used).
Expand Down

0 comments on commit 7b155d6

Please sign in to comment.