React-Native-Maps how to draw polylines
<p>I've started using <a href="https://github.com/airbnb/react-native-maps" rel="nofollow">https://github.com/airbnb/react-native-maps</a> and having no luck drawing polylines from an array of array coordinates on the map.</p>

<p>I am not sure if I'm passing in the array of coordinates correctly.</p>

<p>this is how I am rendering the polyline:</p>

<pre><code>      {this.state.polylines.map(polyline =&gt; (
        &lt;MapView.Polyline
          key={polyline.id}
          coordinates={polyline.coordinates}
          strokeColor="#000"
          fillColor="rgba(255,0,0,0.5)"
          strokeWidth={1}/&gt;
      ))}
</code></pre>

<p><strong>polyline.coordinates</strong> looks like: </p>

<pre><code>      [[lat,lng],[lat,lng],[lat,lng]]
</code></pre>

<p>Thank you for any help/advice :D</p>