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

MessageSystem

Component to render system type messages within the MessageList.

This is the default component provided to the prop MessageSystem on the Channel component. Purpose of system messages is to inform user about changes to channel. System messages are part of message history, and have a property type set as system. You can add system messages within message history in following scenarios:

Props

formatDate

Format function that returns a string to be used for the date in the message status and delete message component.

Type
function
ParameterDescription
datedate to format provided as a string, Date, or number (Unix Timestamp)

message

Message object

Type
object

© Getstream.io, Inc. All Rights Reserved.