This is documentation for Stream Chat React Native SDK v4, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v6).

ChannelPreviewMessage

Component to render a preview of latest message on channel within the ChannelList. This is the default component provided to the prop PreviewMessage on the ChannelList component.

Props

latestMessagePreview

Latest message on a channel, formatted for preview.

e.g.

{
 created_at: '' ,
 messageObject: { ... },
 previews: {
   bold: true,
   text: 'This is the message preview text'
 },
 status: 0 | 1 | 2 // read states of latest message.
}
Type
object

© Getstream.io, Inc. All Rights Reserved.