title: create multiple buttons in a view via loop
body: <p>I want to create multiple custom buttons for my react-native app. 
  I'm using an array with all the informations in it and I want to iterate over all buttons in the array and create all buttons in one single view.
  I tried something like this:</p>
  
  <pre><code>&lt;View&gt;
    for( let i=0; i&lt;numberButtons; i++) {
            &lt;TouchableOpacity style={[styles.mapView, this.props.mapViewStyle]} &gt;
              &lt;Image
                style={[styles.image, this.props.imageStyle]}
                source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}}
              /&gt;
            &lt;/TouchableOpacity&gt;
  }
  &lt;/View&gt;
  </code></pre>
  
  <p>That doesn't seem to work. I get errors from the react-native framework so I guess you can't do js in a view? </p>
  
  <p>How can I do this? </p>