calculateFlexValue = (props) => {
  let flex = 1

  if (props.multiline && props.numberOfLines > 0) {
    flex = props.numberOfLines + 1
  }

  if (props.inlineLabel) {
    flex = 0.5
  }

  return (flex)
}
Calculates the flex value based on the inlineLabel and numberOfLines
properties.

@param {Object} props
@returns {string}