Skip to content

Commit

Permalink
Update KeyboardAwareHOC.js (#354)
Browse files Browse the repository at this point in the history
KarlosQ authored and Álvaro Medina Ballester committed Aug 14, 2019
1 parent bec5fb9 commit 8c3d10d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/KeyboardAwareHOC.js
Original file line number Diff line number Diff line change
@@ -237,9 +237,9 @@ function KeyboardAwareHOC(
})
}

componentWillReceiveProps(nextProps: KeyboardAwareHOCProps) {
if (nextProps.viewIsInsideTabBar !== this.props.viewIsInsideTabBar) {
const keyboardSpace: number = nextProps.viewIsInsideTabBar
componentDidUpdate(prevProps: KeyboardAwareHOCProps) {
if (this.props.viewIsInsideTabBar !== prevProps.viewIsInsideTabBar) {
const keyboardSpace: number = this.props.viewIsInsideTabBar
? _KAM_DEFAULT_TAB_BAR_HEIGHT
: 0
if (this.state.keyboardSpace !== keyboardSpace) {

0 comments on commit 8c3d10d

Please sign in to comment.