diff --git a/src/GiftedChat.tsx b/src/GiftedChat.tsx index aa5d2eabb..914620acf 100644 --- a/src/GiftedChat.tsx +++ b/src/GiftedChat.tsx @@ -568,7 +568,7 @@ function GiftedChat ( useAnimatedReaction( () => keyboard.height.value, (value, prevValue) => { - if (prevValue && value !== prevValue) { + if (prevValue !== null && value !== prevValue) { const isKeyboardMovingUp = value > prevValue if (isKeyboardMovingUp !== trackingKeyboardMovement.value) { trackingKeyboardMovement.value = isKeyboardMovingUp