Fix keyboard layout for ios 9 and 10 (#1256)
This commit is contained in:
parent
86667de6c3
commit
7afc0c4143
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue