Skip to content
Permalink
Browse files

Fix missing scroll to bottom component prop type

  • Loading branch information...
amiralies authored and xcarpentier committed Oct 20, 2019
1 parent a2d7cd4 commit ea326a0f9c4cf57cd80b7e51890899dd71cfdd7e
Showing with 3 additions and 0 deletions.
  1. +1 −0 flow-typedefs/GiftedChat.js.flow
  2. +2 −0 src/GiftedChat.tsx
@@ -46,6 +46,7 @@ export type GiftedChatProps<TMessage: IMessage = IMessage> = $ReadOnly<{|
alignTop?: boolean,
scrollToBottom?: boolean,
scrollToBottomStyle?: ViewStyleProp,
scrollToBottomComponent?: () => React.Node,
initialText?: string,
placeholder?: string,
user?: User,
@@ -173,6 +173,8 @@ export interface GiftedChatProps<TMessage extends IMessage = IMessage> {
onQuickReply?(replies: Reply[]): void
renderQuickReplies?(quickReplies: QuickReplies['props']): React.ReactNode
renderQuickReplySend?(): React.ReactNode
/* Scroll to bottom custom component */
scrollToBottomComponent?(): React.ReactNode
shouldUpdateMessage?(
props: Message['props'],
nextProps: Message['props'],

0 comments on commit ea326a0

Please sign in to comment.
You can’t perform that action at this time.