diff --git a/KeyboardSpacer.js b/KeyboardSpacer.js index 4d5e0ac..beffb40 100644 --- a/KeyboardSpacer.js +++ b/KeyboardSpacer.js @@ -105,7 +105,7 @@ export default class KeyboardSpacer extends Component { // when external physical keyboard is connected // event.endCoordinates.height still equals virtual keyboard height // however only the keyboard toolbar is showing if there should be one - const keyboardSpace = (screenHeight - event.endCoordinates.screenY) + this.props.topSpacing; + const keyboardSpace = screenHeight - event.endCoordinates.screenY; this.setState({ keyboardSpace, isKeyboardOpened: true @@ -135,6 +135,17 @@ export default class KeyboardSpacer extends Component { render() { return ( - ); + + ); } }