We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e90ae65 commit 4f5a87cCopy full SHA for 4f5a87c
index.js
@@ -172,7 +172,9 @@ export default class ModalBox extends React.PureComponent {
172
const keyboardFrame = evt.endCoordinates;
173
const keyboardHeight = this.state.containerHeight - keyboardFrame.screenY;
174
175
- this.setState({keyboardOffset: keyboardHeight}, () => {
+ const isFloatingKeyboard = Dimensions.get('window').width !== keyboardFrame.width;
176
+
177
+ this.setState({keyboardOffset: isFloatingKeyboard ? 0 : keyboardHeight}, () => {
178
this.animateOpen();
179
});
180
}
0 commit comments