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

Function getHeight

lib/ActionSheetCustom.js:89–98  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

87 const styles = this.styles
88
89 const getHeight = (name) => {
90 const style = styles[name][styles[name].length - 1]
91 let h = 0
92 ;['height', 'marginTop', 'marginBottom'].forEach((attrName) => {
93 if (typeof style[attrName] !== 'undefined') {
94 h += style[attrName]
95 }
96 })
97 return h
98 }
99
100 let height = 0
101 if (props.title) height += getHeight('titleBox')

Callers 1

_calculateHeightFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…