From dd8ac1c5d7dee3ce3ffc4b79a6f838d2422f748a Mon Sep 17 00:00:00 2001 From: Joe Campo Date: Mon, 20 Mar 2023 23:06:59 -0400 Subject: [PATCH] (fix) Apply bottomOffset when keyboard is shown --- src/GiftedChat.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GiftedChat.tsx b/src/GiftedChat.tsx index 20347d9f8..e97b0d847 100644 --- a/src/GiftedChat.tsx +++ b/src/GiftedChat.tsx @@ -626,6 +626,7 @@ class GiftedChat extends React.Component< this.setKeyboardHeight( e.endCoordinates ? e.endCoordinates.height : e.end.height, ) + this.setBottomOffset(this.props.bottomOffset != null ? this.props.bottomOffset : 1) const newMessagesContainerHeight = this.getMessagesContainerHeightWithKeyboard() this.setState({ messagesContainerHeight: newMessagesContainerHeight,