Skip to content

Commit 5fa9f29

Browse files
Merge pull request #793 from GetStream/develop
docs: fixed example for message action customisation
2 parents ec76468 + f200e5c commit 5fa9f29

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docusaurus/docs/reactnative/guides/message_actions_customization.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ Following example demonstrates how to introduce a new/custom message action:
9797

9898
```jsx
9999
<Channel
100-
messageActions={() => ([
100+
channel={channel}
101+
messageActions={({ dismissOverlay }) => ([
101102
{
102103
action: () => {
103104
channel.sendMessage({text: '👉'});
@@ -106,7 +107,7 @@ Following example demonstrates how to introduce a new/custom message action:
106107
icon: <PokeUserSVGIcon />,
107108
title: "Poke User",
108109
}
109-
)]}
110+
])}
110111
>
111112
{/** MessageList and MessageInput component here */}
112113
</Channel>

0 commit comments

Comments
 (0)