-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add message bounce docs (#2418)
- Loading branch information
Showing
5 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
...ocs/reactnative/common-content/core-components/channel/props/message_bounce.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Component to render bounce action handler on click or long press of a Bounced message, within [`MessageList`](../../../../ui-components/message_list.mdx). | ||
|
||
| Type | Default | | ||
| --------- | --------------------------------------------------------------- | | ||
| component | [`MessageBounce`](../../../../ui-components/message_bounce.mdx) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
docusaurus/docs/reactnative/ui-components/message_bounce.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
id: message-bounce | ||
title: MessageBounce | ||
--- | ||
|
||
import MessageProp from '../common-content/contexts/message-context/message.mdx'; | ||
|
||
Component to render bounce action handler on click or long press of a Bounced message, within [`MessageList`](./message_list.mdx). | ||
|
||
## Props | ||
|
||
### `setEditingState` | ||
|
||
Enables editing state for given message. | ||
|
||
| Type | | ||
| ------------------- | | ||
| `(message) => void` | | ||
|
||
### `removeMessage` | ||
|
||
Function to remove message from local channel state. Please note that this function is only for updating the local state, it doesn't call the API for deleting message (`channel.deleteMessage`). | ||
|
||
| Type | | ||
| ------------------- | | ||
| `(message) => void` | | ||
|
||
### `retrySendMessage` | ||
|
||
Function to re-attempt sending failed message. | ||
|
||
| Type | | ||
| ------------------- | | ||
| `(message) => void` | | ||
|
||
### <div class="label description">_overrides the value from [MessageContext](../contexts/message_context.mdx#message)_</div> `message` {#message} | ||
|
||
<MessageProp /> | ||
|
||
### `setIsBounceDialogOpen` | ||
|
||
React state update function to open/close the message bounce modal. | ||
|
||
| Type | | ||
| ------------------- | | ||
| `(boolean) => void` | |