MCPcopy
hub / github.com/APSL/react-native-keyboard-aware-scroll-view / componentDidUpdate

Method componentDidUpdate

lib/KeyboardAwareHOC.js:246–255  ·  view source on GitHub ↗
(prevProps: KeyboardAwareHOCProps)

Source from the content-addressed store, hash-verified

244 }
245
246 componentDidUpdate(prevProps: KeyboardAwareHOCProps) {
247 if (this.props.viewIsInsideTabBar !== prevProps.viewIsInsideTabBar) {
248 const keyboardSpace: number = this.props.viewIsInsideTabBar
249 ? _KAM_DEFAULT_TAB_BAR_HEIGHT
250 : 0
251 if (this.state.keyboardSpace !== keyboardSpace) {
252 this.setState({ keyboardSpace })
253 }
254 }
255 }
256
257 componentWillUnmount() {
258 this.mountedComponent = false

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected