Skip to content

Commit

Permalink
added scrollToBottomOffset field to GiftedChatProps interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem-Mehes committed May 25, 2023
1 parent a793083 commit a698be5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GiftedChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export interface GiftedChatProps<TMessage extends IMessage = IMessage> {
scrollToBottom?: boolean
/* Scroll to bottom wrapper style */
scrollToBottomStyle?: StyleProp<ViewStyle>
/* Custom Height Offset upon which to begin showing Scroll To Bottom Component (Default is 200) */
scrollToBottomOffset?: number
initialText?: string
/* Placeholder when text is empty; default is 'Type a message...' */
placeholder?: string
Expand Down Expand Up @@ -764,6 +766,7 @@ GiftedChat.propTypes = {
minComposerHeight: PropTypes.number,
maxComposerHeight: PropTypes.number,
alignTop: PropTypes.bool,
scrollToBottomOffset: PropTypes.number,
}

GiftedChat.append = <TMessage extends IMessage>(
Expand Down

0 comments on commit a698be5

Please sign in to comment.