From 86509b0786b11093dce3de94bef9d6954f87e444 Mon Sep 17 00:00:00 2001 From: Alex Chen Date: Wed, 24 Mar 2021 16:57:42 +1000 Subject: [PATCH] fix: auto-scroll height issue - fix issue by passing contentInset's bottom number --- lib/KeyboardAwareHOC.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/KeyboardAwareHOC.js b/lib/KeyboardAwareHOC.js index 9710dda7..ecd1cb88 100644 --- a/lib/KeyboardAwareHOC.js +++ b/lib/KeyboardAwareHOC.js @@ -303,10 +303,11 @@ function KeyboardAwareHOC( return } const responder = this.getScrollResponder() + const additionalOffset = this.state.keyboardSpace - extraHeight responder && responder.scrollResponderScrollNativeHandleToKeyboard( reactNode, - extraHeight, + additionalOffset, true ) }, keyboardOpeningTime)