You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docusaurus/docs/reactnative/common-content/ui-components/channel/props/thread.mdx
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,6 @@
1
-
A message object that when set indicates a thread is open.
1
+
Can be either a `MessageType` object or a [`ThreadType`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/threadContext/ThreadContext.tsx) that when set indicates a thread is open.
2
+
Both of the types may be used interchangeably.
3
+
2
4
When used with the [`Thread`](../../../../ui-components/thread.mdx) component this will display the thread.
3
5
When used with the standard [`MessageList`](../../../../ui-components/message-list.mdx) component this will prevent any singleton components in the [`OverlayProvider`](../../../../core-components/overlay-provider.mdx) form getting out of sync.
Copy file name to clipboardExpand all lines: docusaurus/docs/reactnative/hooks/poll/use-poll-state.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ A property containing the number of answers (comments) to the `poll`.
39
39
| -------- |
40
40
|`number`|
41
41
42
-
### `created_by`
42
+
### `createdBy`
43
43
44
44
A property containing information about the user who created the `poll`. Its type can be found [here](https://github.com/GetStream/stream-chat-js/blob/b447512922b19bc7e3668bd9df81debcb673dd81/src/types.ts) under `UserResponse`.
45
45
@@ -57,7 +57,7 @@ A property depicting whether each user should have only one and unique vote or t
57
57
| --------- |
58
58
|`boolean`|
59
59
60
-
### `is_closed`
60
+
### `isClosed`
61
61
62
62
A property depicting whether the `poll` is still open for voting or not.
63
63
@@ -75,7 +75,7 @@ This property is not available for anonymous polls.
75
75
| -------------------------- |
76
76
|`Record<string, PollVote>`|
77
77
78
-
### `max_votes_allowed`
78
+
### `maxVotesAllowed`
79
79
80
80
A property containing the maximum number of votes allowed per user.
Similarly to the `threads` feature, one can also directly use `useStateStore` and access `StreamChat.polls.fromState(<poll-id>).state` through custom `selector`s.
400
400
401
401
:::note
402
-
Both `usePollStateStore` and `usePollState` can only be used in children of a [`PollContext`](./contexts/poll-context.mdx). This impediment does not exist however on `useStateStore`.
402
+
Both `usePollStateStore` and `usePollState` can only be used in children of a [`PollContext`](../contexts/poll-context.mdx). This impediment does not exist however on `useStateStore`.
403
403
:::
404
404
405
405
Due to this, all `poll` related components within the SDK are self-wrapped within a `PollContext` and require `message` and `poll` as mandatory props.
0 commit comments