We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bec5fb9 commit 8c3d10dCopy full SHA for 8c3d10d
lib/KeyboardAwareHOC.js
@@ -237,9 +237,9 @@ function KeyboardAwareHOC(
237
})
238
}
239
240
- componentWillReceiveProps(nextProps: KeyboardAwareHOCProps) {
241
- if (nextProps.viewIsInsideTabBar !== this.props.viewIsInsideTabBar) {
242
- const keyboardSpace: number = nextProps.viewIsInsideTabBar
+ componentDidUpdate(prevProps: KeyboardAwareHOCProps) {
+ if (this.props.viewIsInsideTabBar !== prevProps.viewIsInsideTabBar) {
+ const keyboardSpace: number = this.props.viewIsInsideTabBar
243
? _KAM_DEFAULT_TAB_BAR_HEIGHT
244
: 0
245
if (this.state.keyboardSpace !== keyboardSpace) {
0 commit comments