Skip to content

Commit 0083ea9

Browse files
committed
Ignore iPad floating keyboard frame change event
1 parent e90ae65 commit 0083ea9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ export default class ModalBox extends React.PureComponent {
172172
const keyboardFrame = evt.endCoordinates;
173173
const keyboardHeight = this.state.containerHeight - keyboardFrame.screenY;
174174

175+
if(Dimensions.get('window').width !== keyboardFrame.width)
176+
return;
177+
175178
this.setState({keyboardOffset: keyboardHeight}, () => {
176179
this.animateOpen();
177180
});

0 commit comments

Comments
 (0)