title: Stretch height to fit content in react native
body: <p>I want to change the height of the modal to fit to the content. It always just goes to the height of the screen:</p>
  
  <p><a href="https://i.stack.imgur.com/oa2q8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oa2q8.png" alt="enter image description here"></a></p>
  
  <p>jsx:</p>
  
  <pre><code>  &lt;Modal style={styles.modal}
      isVisible={props.categories.some(x =&gt; showModal(x))}&gt;
      &lt;Container style={styles.modalView}&gt;
        &lt;Header style={styles.header}&gt;
          &lt;Left&gt;
            &lt;Title 
              style={styles.title}&gt;{getDisplayedCategoryLabel(props.categories)}
            &lt;/Title&gt;
          &lt;/Left&gt;
          &lt;Right&gt;
            &lt;Button 
              small 
              transparent 
              danger 
              rounded 
              icon 
              onPress={() =&gt; props.setAllShowSubcategoriesToFalse()}&gt;
              &lt;Icon name="times" size={20} color='#9E9E9E' /&gt;
            &lt;/Button&gt;
          &lt;/Right&gt;
        &lt;/Header&gt;
        &lt;Content &gt;
          &lt;SelectMultiple
            labelStyle={styles.label}
            items={getDisplaySubcategories(props.categories)}
            selectedItems={
              props.categories.filter(category =&gt; category.selected)
            }
            onSelectionsChange={props.toggleSubcategory} /&gt;
        &lt;/Content&gt;
      &lt;/Container&gt;
    &lt;/Modal&gt;
  </code></pre>
  
  <p>styles:</p>
  
  <pre><code>    const styles = {
    modalView: {
      flex: 1,
      backgroundColor: '#FFFFFF',
      padding: 20,
      borderRadius: 8,
      height: 100
    },
    modal: {
      padding: 10,
      height: 100
    }
      }
  </code></pre>
  
  <p>Changing the height of <code>modal</code> style doesn't do anything. I can't seem to change the height at all. What should I be doing to affect the height?</p>
  
  <p>I'm using <a href="https://github.com/react-native-community/react-native-modal" rel="noreferrer">react-native-modal</a></p>