title: React-Native-Maps how to draw polylines From Array List?
body: <p>I've started using <a href="https://github.com/airbnb/react-native-maps" rel="nofollow noreferrer">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>
  <p>Here is api link that contains coords: <a href="https://run.mocky.io/v3/e42d76ce-2ac8-4199-9f2c-e5b611960d38" rel="nofollow noreferrer">https://run.mocky.io/v3/e42d76ce-2ac8-4199-9f2c-e5b611960d38</a></p>
  <p>I have code like this.</p>
  <pre><code> &lt;MapView
              style={styles.mapStyle}
              provider={PROVIDER_GOOGLE}
              minZoomLevel={0}
              showsTraffic={false}
              showsBuildings={true}
              followUserLocation={false}
              loadingEnabled={true}
              showsUserLocation={true}
              loadingIndicatorColor={'green'}
              initialRegion={{
                latitude: 37.78825,
                longitude: -122.4324,
                latitudeDelta: 0.0922,
                longitudeDelta: 0.0421,
              }}
              zoomEnabled={true}
              showsUserLocation={true}&gt;
                {
                  
                  
                speed.map((d) =&gt;
                d.segments.map((c) =&gt; (
                  &lt;Polyline
                    coordinates={c.coordinate}
                    strokeColor=&quot;#000&quot; the map-provider
           
                    strokeWidth={6}&gt;
                    &lt;Marker
                      coordinate={{latitude: 37.8025259, longitude: -122.4351431}}
                      title=&quot;Flatiron School Atlanta&quot;
                      description=&quot;This is where the magic happens!&quot;&gt;&lt;/Marker&gt;
                  &lt;/Polyline&gt;
                )),
              )}
            &lt;/MapView&gt;
  </code></pre>
  <p>and i have coordinates like this,</p>
  <pre><code>{&quot;coordinates&quot;:[[43.43522206128157,-79.73892179139867],[43.43522206128157,-79.73892179139867],[43.43522206128157,-79.73892179139867],[43.43522206128157,-79.73892179139867],[43.43522206128157,-79.73892179139867],[43.43522206128157,-79.73892179139867],[43.43522206128157,-79.73892179139867],[43.43522206128157,-79.73892179139867],[43.43522206128157,-79.73892179139867],[43.43522206128157,-79.73892179139867],[43.43522206128157,-79.73892179139867],[43.43522206128157,-79.73892179139867],[43.43522206128157,-79.73892179139867],[43.43522206128157,-79.73892179139867]]}
  </code></pre>
  <p>Thanks for any help</p>