From 7afc0c414387d2b4dafe59fdcf3ad2ea8eddfc10 Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 4 Dec 2017 17:07:08 -0300 Subject: [PATCH] Fix keyboard layout for ios 9 and 10 (#1256) --- app/components/layout/keyboard_layout/keyboard_layout.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/layout/keyboard_layout/keyboard_layout.js b/app/components/layout/keyboard_layout/keyboard_layout.js index 9a83e0ad4..b57842abc 100644 --- a/app/components/layout/keyboard_layout/keyboard_layout.js +++ b/app/components/layout/keyboard_layout/keyboard_layout.js @@ -49,10 +49,11 @@ export default class KeyboardLayout extends PureComponent { const {endCoordinates, duration, startCoordinates} = e; let height = 0; - if (startCoordinates.height < endCoordinates.height) { + if (startCoordinates.height < endCoordinates.height || endCoordinates.screenY < startCoordinates.screenY) { height = endCoordinates.height; } + this.setState({bottom: new Animated.Value(height)}); Animated.timing(this.state.bottom, { toValue: height, duration