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

Method constructor

lib/KeyboardAwareHOC.js:199–210  ·  view source on GitHub ↗
(props: KeyboardAwareHOCProps)

Source from the content-addressed store, hash-verified

197 }
198
199 constructor(props: KeyboardAwareHOCProps) {
200 super(props)
201 this.keyboardWillShowEvent = undefined
202 this.keyboardWillHideEvent = undefined
203 this.callbacks = {}
204 this.position = { x: 0, y: 0 }
205 this.defaultResetScrollToCoords = null
206 const keyboardSpace: number = props.viewIsInsideTabBar
207 ? _KAM_DEFAULT_TAB_BAR_HEIGHT
208 : 0
209 this.state = { keyboardSpace }
210 }
211
212 componentDidMount() {
213 this.mountedComponent = true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected