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
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -321,6 +321,8 @@ interface QuickReplies {
321
321
322
322
## Props
323
323
324
+
-**`messageContainerRef`**_(FlatList ref)_ - Ref to the flatlist
325
+
-**`textInputRef`**_(TextInput ref)_ - Ref to the text input
324
326
-**`messages`**_(Array)_ - Messages to display
325
327
-**`isTyping`**_(Bool)_ - Typing Indicator state; default `false`. If you use`renderFooter` it will override this.
326
328
-**`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))
@@ -408,10 +410,6 @@ interface QuickReplies {
408
410
***`shouldUpdateMessage`**_(Function)_ - Lets the message component know when to update outside of normal cases.
409
411
***`infiniteScroll`**_(Bool)_ - infinite scroll up when reach the top of messages container, automatically call onLoadEarlier function if exist (not yet supported for the web). You need to add `loadEarlier` prop too.
410
412
411
-
## Imperative methods
412
-
413
-
-`focusTextInput()` - Open the keyboard and focus the text input box
414
-
415
413
## Notes for [Redux](https://github.com/reactjs/redux)
416
414
417
415
The `messages` prop should work out-of-the-box with Redux. In most cases, this is all you need.
0 commit comments