mirror of
https://github.com/zhigang1992/react-native-chat-ui.git
synced 2026-06-15 10:27:57 +08:00
1.6 KiB
1.6 KiB
id, title
| id | title |
|---|---|
| localization | Localization |
You can pass the locale prop to the <Chat /> component. This locale will be passed to dayjs, so we can localize dates. To see all supported locales check function initLocale in this file. Additionally, locale prop will be used to localize a couple of texts defined here. You can override texts regardless of the locale by passing l10nOverride prop.
<Chat
l10nOverride={{ inputPlaceholder: 'Here' }}
locale='en'
/>
Types
| Name | Type | Description |
|---|---|---|
| attachmentButtonAccessibilityLabel | string | Accessibility label (hint) for the attachment button |
| emptyChatPlaceholder | string | Placeholder when there are no messages |
| fileButtonAccessibilityLabel | string | Accessibility label (hint) for the tap action on file message |
| inputPlaceholder | string | Placeholder for the text input |
| sendButtonAccessibilityLabel | string | Accessibility label (hint) for the send button |
| today | string | Today string |
| yesterday | string | Yesterday string |