From a698be535605495279e16a62b27e62ce6bc713c5 Mon Sep 17 00:00:00 2001 From: Artem-Mehes Date: Thu, 25 May 2023 17:37:21 +0300 Subject: [PATCH] added scrollToBottomOffset field to GiftedChatProps interface --- src/GiftedChat.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GiftedChat.tsx b/src/GiftedChat.tsx index 769739b0a..026f81283 100644 --- a/src/GiftedChat.tsx +++ b/src/GiftedChat.tsx @@ -67,6 +67,8 @@ export interface GiftedChatProps { scrollToBottom?: boolean /* Scroll to bottom wrapper style */ scrollToBottomStyle?: StyleProp + /* 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 @@ -764,6 +766,7 @@ GiftedChat.propTypes = { minComposerHeight: PropTypes.number, maxComposerHeight: PropTypes.number, alignTop: PropTypes.bool, + scrollToBottomOffset: PropTypes.number, } GiftedChat.append = (