From 9bd1d61acd2bcab1f2b737840b764e88b57cc8b3 Mon Sep 17 00:00:00 2001 From: Jasper Martin Date: Wed, 23 Jan 2019 18:49:28 +0800 Subject: [PATCH] Add renderUsernameOnMessage on the documentation (#1096) Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f67dd0fc9..efdd48b87 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,7 @@ e.g. System Message - **`renderSystemMessage`** _(Function)_ - Custom system message - **`onLongPress`** _(Function(`context`, `message`))_ - Callback when a message bubble is long-pressed; default is to show an ActionSheet with "Copy Text" (see [example using `showActionSheetWithOptions()`](https://github.com/FaridSafi/react-native-gifted-chat/blob/master@%7B2017-09-25%7D/src/Bubble.js#L96-L119)) - **`inverted`** _(Bool)_ - Reverses display order of `messages`; default is `true` +- **`renderUsernameOnMessage`** _(Bool)_ - Indicate whether to show the user's username inside the message bubble; default is `false` - **`renderMessage`** _(Function)_ - Custom message container - **`renderMessageText`** _(Function)_ - Custom message text - **`renderMessageImage`** _(Function)_ - Custom message image