title: React Native FlatList with columns, Last item width
body: <p>I'm using a FlatList to show a list of items in two columns</p>
  
  <pre><code>&lt;FlatList style={{margin:5}}
    data={this.state.items}
    numColumns={2}
    keyExtractor={(item, index) =&gt; item.id }
    renderItem={(item) =&gt; &lt;Card image={item.item.gallery_image_url} text={item.item.name}/&gt; }
  /&gt;
  </code></pre>
  
  <p>The card component is just a view with some styles:</p>
  
  <pre><code>&lt;View style={{ flex: 1, margin: 5, backgroundColor: '#ddd', height: 130}} &gt;&lt;/View&gt;
  </code></pre>
  
  <p>It is working fine, but if the number of items is odd, the last row only contains one item and that item stretches to the full width of the screen.</p>
  
  <p>How can I set the item to the same width of the others?</p>
  
  <p><a href="https://i.stack.imgur.com/yvFBk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yvFBk.png" alt="enter image description here"></a></p>