diff --git a/src/GiftedChat.tsx b/src/GiftedChat.tsx index 6be007723..d09690030 100644 --- a/src/GiftedChat.tsx +++ b/src/GiftedChat.tsx @@ -391,6 +391,8 @@ class GiftedChat extends React.Component< invertibleScrollViewProps: any = undefined _actionSheetRef: any = undefined + _lastUpdate = -1; + _messageContainerRef?: RefObject> = React.createRef() textInput?: any @@ -594,6 +596,11 @@ class GiftedChat extends React.Component< onKeyboardWillShow = (e: any) => { if (this.props.isKeyboardInternallyHandled) { + if (Date.now() - this._lastUpdate < 100) { + return; + } + this._lastUpdate = Date.now() + this.setIsTypingDisabled(true) this.setKeyboardHeight( e.endCoordinates ? e.endCoordinates.height : e.end.height,