MCPcopy Create free account
hub / github.com/beefe/react-native-actionsheet / constructor

Function constructor

example/app/lib/ActionSheetCustom.js:17–25  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

15 }
16
17 constructor (props) {
18 super(props)
19 this.scrollEnabled = false
20 this.translateY = this._calculateHeight(props)
21 this.state = {
22 visible: false,
23 sheetAnim: new Animated.Value(this.translateY)
24 }
25 }
26
27 componentWillReceiveProps (nextProps) {
28 this.translateY = this._calculateHeight(nextProps)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…