Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while updating property 'lineCap' of a view managed by: AIRMapPolyline in expo

expo version : sdk42 react-native-maps: 0.28 and 0.27.1 both using react-native-maps-directions here is code

   <MapView
    provider={PROVIDER_GOOGLE} // remove if not using Google Maps
    style={styles.map}
    region={getMapRegion()}
  >
    <MapViewDirections
      origin={origin}
      destination={destination}
      apikey={GOOGLE_MAPS_APIKEY}
      strokeWidth={3}
      strokeColor="blue"
    />

    <Marker
      coordinate={getMapRegion()}
      title="Test Title"
      description="This is the test description"
    >
      <Callout tooltip>
        <Text>{text}</Text>
      </Callout>
    </Marker>
  </MapView>
like image 782
Ibad Ur Rehman Avatar asked Dec 31 '22 13:12

Ibad Ur Rehman


1 Answers

lineDashPattern={[number]} add this in polyline or react MapViewDirections

 <MapViewDirections
      lineDashPattern={[0]}
      origin={origin}
      destination={destination}
      apikey={GOOGLE_MAPS_APIKEY}
      
    />
like image 133
Ibad Ur Rehman Avatar answered Jan 02 '23 03:01

Ibad Ur Rehman