From f6a75bb3f35bd8efecd4f109b93f4c4f21a504f3 Mon Sep 17 00:00:00 2001 From: Shaun Stanworth Date: Fri, 24 Nov 2017 13:13:22 +0000 Subject: [PATCH] Remove height styling when keyboard closed --- Libraries/Components/Keyboard/KeyboardAvoidingView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/Keyboard/KeyboardAvoidingView.js b/Libraries/Components/Keyboard/KeyboardAvoidingView.js index 1f6c4848496d5d..e1bee1652c2fa3 100644 --- a/Libraries/Components/Keyboard/KeyboardAvoidingView.js +++ b/Libraries/Components/Keyboard/KeyboardAvoidingView.js @@ -157,7 +157,7 @@ const KeyboardAvoidingView = createReactClass({ switch (behavior) { case 'height': let heightStyle; - if (this.frame) { + if (this.frame && this.state.bottom) { // Note that we only apply a height change when there is keyboard present, // i.e. this.state.bottom is greater than 0. If we remove that condition, // this.frame.height will never go back to its original value.