From 88af44650946bfe4c0a44b0e16ed82a262c28416 Mon Sep 17 00:00:00 2001 From: Suleiman Zaitoun Date: Sun, 30 Jun 2024 13:36:25 +0300 Subject: [PATCH] fixing auto scroll when there is rerendering happening on the screen --- lib/KeyboardAwareHOC.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/KeyboardAwareHOC.js b/lib/KeyboardAwareHOC.js index 03f46af..c38e260 100644 --- a/lib/KeyboardAwareHOC.js +++ b/lib/KeyboardAwareHOC.js @@ -215,7 +215,11 @@ function KeyboardAwareHOC( if (Platform.OS === 'ios') { this.keyboardWillShowEvent = Keyboard.addListener( 'keyboardWillShow', - this._updateKeyboardSpace + (frame) => { + if(Keyboard.isVisible()) { return; } + + this._updateKeyboardSpace(frame) + } ) this.keyboardWillHideEvent = Keyboard.addListener( 'keyboardWillHide',