更新由以下人员管理的视图的属性"lineCap"时出错:博览会中的 AIRMapPolyline



expo版本:sdk42react原生地图:0.28和0.27.1使用react本地地图方向这是代码

<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>

lineDashPattern={[number]}将其添加到折线中或反应MapViewDirections

<MapViewDirections
lineDashPattern={[0]}
origin={origin}
destination={destination}
apikey={GOOGLE_MAPS_APIKEY}

/>

最新更新