import {Channel, MessageAvatar} from 'stream-chat-react-native';
const MessagePinnedHeaderComponent = () => <MessagePinnedHeader />
<Channel MessagePinnedHeader={MessagePinnedHeaderComponent} />
MessagePinnedHeader
Component to render the pinned message label (user) of a message within the MessageList
.
Basic Usage
You can customize the MessagePinnedHeader
component and provide it back to the SDK via the MessagePinnedHeader
prop on Channel
if desired.
Props
This component uses default values for all the following props, from MessageContext
message
Message object.
Type |
---|
Message type |
- I'm working with the Stream Chat React Native SDK and would like to ask questions about this documentation page: https://getstream.io/chat/docs/sdk/react-native/ui-components/message-pinned-header.md
- View as markdown
- Open in ChatGPT
- Open in Claude
On this page: