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 aa0869e commit 15fd072Copy full SHA for 15fd072
lib/KeyboardAwareMixin.js
@@ -26,7 +26,10 @@ const KeyboardAwareMixin = {
26
27
setViewIsInsideTabBar: function (viewIsInsideTabBar: bool) {
28
this.viewIsInsideTabBar = viewIsInsideTabBar
29
- this.setState({keyboardSpace: _KAM_DEFAULT_TAB_BAR_HEIGHT})
+ const keyboardSpace = viewIsInsideTabBar ? _KAM_DEFAULT_TAB_BAR_HEIGHT : 0
30
+ if (this.state.keyboardSpace !== keyboardSpace) {
31
+ this.setState({keyboardSpace})
32
+ }
33
},
34
35
setResetScrollToCoords: function (coords: {x: number, y: number}) {
0 commit comments