diff --git a/KeyboardSpacer.js b/KeyboardSpacer.js index 6200984..4d5e0ac 100644 --- a/KeyboardSpacer.js +++ b/KeyboardSpacer.js @@ -86,7 +86,7 @@ export default class KeyboardSpacer extends Component { } updateKeyboardSpace(event) { - if (!event.endCoordinates) { + if (!event.endCoordinates || this.state.isKeyboardOpened) { return; } @@ -113,6 +113,10 @@ export default class KeyboardSpacer extends Component { } resetKeyboardSpace(event) { + if (!this.state.isKeyboardOpened) { + return; + } + let animationConfig = defaultAnimation; if (Platform.OS === 'ios') { animationConfig = LayoutAnimation.create(