Skip to content

Commit

Permalink
(fix) Apply bottomOffset when keyboard is shown
Browse files Browse the repository at this point in the history
  • Loading branch information
joecampo authored Mar 21, 2023
1 parent d1b17f8 commit dd8ac1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/GiftedChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ class GiftedChat<TMessage extends IMessage = IMessage> 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,
Expand Down

0 comments on commit dd8ac1c

Please sign in to comment.