Skip to content

Commit

Permalink
Fix APSL#86 unnecessary space in the bottom (APSL#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
alizbazar authored and alvaromb committed Dec 29, 2016
1 parent aa0869e commit 15fd072
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/KeyboardAwareMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ const KeyboardAwareMixin = {

setViewIsInsideTabBar: function (viewIsInsideTabBar: bool) {
this.viewIsInsideTabBar = viewIsInsideTabBar
this.setState({keyboardSpace: _KAM_DEFAULT_TAB_BAR_HEIGHT})
const keyboardSpace = viewIsInsideTabBar ? _KAM_DEFAULT_TAB_BAR_HEIGHT : 0
if (this.state.keyboardSpace !== keyboardSpace) {
this.setState({keyboardSpace})
}
},

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

0 comments on commit 15fd072

Please sign in to comment.