diff --git a/src/GiftedChat.tsx b/src/GiftedChat.tsx index 7739d462b..e0482dcdc 100644 --- a/src/GiftedChat.tsx +++ b/src/GiftedChat.tsx @@ -559,7 +559,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