Info:
This is documentation for Stream Chat React Native SDK v7, which is no longer actively maintained. For up-to-date documentation, see the latest version (v9).

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.

import {Channel, MessageAvatar} from 'stream-chat-react-native';

const MessagePinnedHeaderComponent = () => <MessagePinnedHeader />

<Channel MessagePinnedHeader={MessagePinnedHeaderComponent} />

Props

This component uses default values for all the following props, from MessageContext

message

Message object.

Type
Message type
Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat React Native v7: <Your Question>