Skip to content

Commit 6dfaece

Browse files
nik910alvaromb
authored andcommitted
Reseting keyboard space to default keyboard space after keyboard dismiss (#238)
1 parent ed4c428 commit 6dfaece

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/KeyboardAwareHOC.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,7 @@ function KeyboardAwareHOC(
428428
}
429429

430430
_resetKeyboardSpace = () => {
431-
const keyboardSpace: number = this.props.viewIsInsideTabBar
432-
? _KAM_DEFAULT_TAB_BAR_HEIGHT + this.props.extraScrollHeight || 0
433-
: this.props.extraScrollHeight || 0
431+
const keyboardSpace: number = this.props.viewIsInsideTabBar ? _KAM_DEFAULT_TAB_BAR_HEIGHT : 0
434432
this.setState({ keyboardSpace })
435433
// Reset scroll position after keyboard dismissal
436434
if (this.props.enableResetScrollToCoords === false) {

0 commit comments

Comments
 (0)