Skip to content

Commit

Permalink
Fix leftover blank space at bottom of scrollView on android (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Judge authored and alvaromb committed Oct 18, 2018
1 parent 6dfaece commit 50cd5e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/KeyboardAwareHOC.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ function KeyboardAwareHOC(
}

_resetKeyboardSpace = () => {
const keyboardSpace: number = this.props.viewIsInsideTabBar ? _KAM_DEFAULT_TAB_BAR_HEIGHT : 0
const keyboardSpace: number = this.props.viewIsInsideTabBar
? _KAM_DEFAULT_TAB_BAR_HEIGHT
: 0
this.setState({ keyboardSpace })
// Reset scroll position after keyboard dismissal
if (this.props.enableResetScrollToCoords === false) {
Expand Down

0 comments on commit 50cd5e2

Please sign in to comment.