This is beta documentation for Stream Chat React Native SDK v9. For the latest stable version, see the latest version (v8)
.
MessageTimestamp
Renders timestamp text used by MessageStatus.
Best Practices
- Pass
formattedDatewhen you already format dates upstream. - Keep
timestampTranslationKeystable for localization consistency. - Use one date parser (
tDateTimeParser) throughout your app. - Keep timestamp formatting cheap in long lists.
- Prefer theme styling over custom wrapper components.
Props
formattedDate
Already formatted date to display directly.
| Type |
|---|
String | Date | undefined |
timestamp
Raw timestamp value used to compute display text.
| Type |
|---|
String | Date | undefined |
timestampTranslationKey
Translation key used for timestamp formatting.
| Type | Default |
|---|---|
| string | timestamp/MessageTimestamp |
tDateTimeParser
Custom date parser override.
| Type |
|---|
| function |