Skip to content

Commit 15fd072

Browse files
alizbazaralvaromb
authored andcommitted
Fix #86 unnecessary space in the bottom (#87)
1 parent aa0869e commit 15fd072

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/KeyboardAwareMixin.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ const KeyboardAwareMixin = {
2626

2727
setViewIsInsideTabBar: function (viewIsInsideTabBar: bool) {
2828
this.viewIsInsideTabBar = viewIsInsideTabBar
29-
this.setState({keyboardSpace: _KAM_DEFAULT_TAB_BAR_HEIGHT})
29+
const keyboardSpace = viewIsInsideTabBar ? _KAM_DEFAULT_TAB_BAR_HEIGHT : 0
30+
if (this.state.keyboardSpace !== keyboardSpace) {
31+
this.setState({keyboardSpace})
32+
}
3033
},
3134

3235
setResetScrollToCoords: function (coords: {x: number, y: number}) {

0 commit comments

Comments
 (0)