You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -355,10 +355,12 @@ interface QuickReplies {
355
355
-**`messageContainerRef`**_(FlatList ref)_ - Ref to the flatlist
356
356
-**`textInputRef`**_(TextInput ref)_ - Ref to the text input
357
357
-**`messages`**_(Array)_ - Messages to display
358
+
-**`messagesContainerStyle`**_(Object)_ - Custom style for the messages container
358
359
-**`isTyping`**_(Bool)_ - Typing Indicator state; default `false`. If you use`renderFooter` it will override this.
359
360
-**`keyboardBottomOffset`**_(Integer)_ - Distance between the bottom of the screen and bottom of the `GiftedChat` component. Useful when you have a tab bar or navigation bar; default is `0`. Needed for correct keyboard avoiding behavior. Without it you might see gap between the keyboard and the input toolbar if you have a tab bar, navigation bar, or safe area.
360
361
-**`isKeyboardInternallyHandled`**_(Bool)_ - Determine whether to handle keyboard awareness inside the plugin. If you have your own keyboard handling outside the plugin set this to false; default is `true`
361
362
-**`text`**_(String)_ - Input text; default is `undefined`, but if specified, it will override GiftedChat's internal state (e.g. for redux; [see notes below](#notes-for-redux))
363
+
-**`initialText`**_(String)_ - Initial text to display in the input field
362
364
-**`onInputTextChanged`**_(Function)_ - Callback when the input text changes
363
365
-**`messageIdGenerator`**_(Function)_ - Generate an id for new messages. Defaults to UUID v4, generated by [uuid](https://github.com/kelektiv/node-uuid)
364
366
-**`user`**_(Object)_ - User sending the messages: `{ _id, name, avatar }`
@@ -400,13 +402,17 @@ interface QuickReplies {
400
402
-**`renderMessageText`**_(Function)_ - Custom message text
-**`imageProps`**_(Object)_ - Extra props to be passed to the [`<Image>`](https://reactnative.dev/docs/image.html) component created by the default `renderMessageImage`
407
+
-**`imageStyle`**_(Object)_ - Custom style for message images
404
408
-**`videoProps`**_(Object)_ - Extra props to be passed to the video component created by the required `renderMessageVideo`
405
409
-**`isCustomViewBottom`**_(Bool)_ - Determine whether renderCustomView is displayed before or after the text, image and video views; default is `false`
406
410
-**`renderCustomView`**_(Function)_ - Custom view inside the bubble
407
411
-**`renderDay`**_(Function)_ - Custom day above a message
408
412
-**`renderTime`**_(Function)_ - Custom time inside a message
413
+
-**`timeTextStyle`**_(Object)_ - Custom text style for time inside messages (supports left/right styles)
409
414
-**`renderFooter`**_(Function)_ - Custom footer component on the ListView, e.g. `'User is typing...'`; see [App.tsx](/example/App.tsx) for an example. Overrides default typing indicator that triggers when `isTyping` is true.
-**`renderSend`**_(Function)_ - Custom send button; you can pass children to the original `Send` component quite easily, for example, to use a custom icon ([example](https://github.com/FaridSafi/react-native-gifted-chat/pull/487))
416
422
-**`renderAccessory`**_(Function)_ - Custom second line of actions below the message composer
417
423
-**`onPressActionButton`**_(Function)_ - Callback when the Action button is pressed (if set, the default `actionSheet` will not be used)
424
+
-**`actionSheet`**_(Function)_ - Custom action sheet interface for showing action options
425
+
-**`actions`**_(Array)_ - Custom action options for the input toolbar action button; array of objects with `title` (string) and `action` (function) properties
426
+
-**`actionSheetOptionTintColor`**_(String)_ - Tint color for action sheet options
418
427
-**`focusOnInputWhenOpeningKeyboard`**_(Bool)_ - Focus on <TextInput> automatically when opening the keyboard; default `true`
419
428
-**`minInputToolbarHeight`**_(Integer)_ - Minimum height of the input toolbar; default is `44`
420
429
-**`listProps`**_(Object)_ - Extra props to be passed to the messages [`<FlatList>`](https://reactnative.dev/docs/flatlist.html); some props can't be overridden, see the code in `MessageContainer.render()` for details
@@ -463,9 +472,12 @@ Example:
463
472
***`onQuickReply`**_(Function)_ - Callback when sending a quick reply (to backend server)
464
473
***`renderQuickReplies`**_(Function)_ - Custom all quick reply view
0 commit comments