# MessageSystem

> **Info:** This is documentation for **Stream Chat React Native SDK v4**, which is no longer actively maintained. For up-to-date documentation, see the [latest version (v10)](https://getstream.io/chat/docs/sdk/react-native/).

Component to render `system` type messages within the [`MessageList`](https://getstream.io/chat/docs/sdk/react-native/v4/ui-components/message-list/).

This is the default component provided to the prop [`MessageSystem`](https://getstream.io/chat/docs/sdk/react-native/v4/core-components/channel/#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:

- [A user gets added to or removed from channel](https://getstream.io/chat/docs/javascript/channel-members/)
- [A user accepts invite to join a channel](https://getstream.io/chat/docs/javascript/channel-invites/#accept-an-invite)
- [Channel is updated](https://getstream.io/chat/docs/javascript/channel-update/#full-update)

## Props

### `formatDate`

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

| Type     |
| -------- |
| function |

| Parameter | Description                                                                                                                                                    |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| date      | date to format provided as a string, [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date), or number (Unix Timestamp) |

### message

Message object

| Type   |
| ------ |
| object |

---

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/v4/ui-components/message-system/](https://getstream.io/chat/docs/sdk/react-native/v4/ui-components/message-system/).