当我使用mapView polygan导航到其他组件时,未在下一个组件mycode中加载新的polygans时,在这里: 我用状态来加载坐标polygans
<MapView key={10}
style={{ height: 450 }}
scrollEnabled={true}
showsUserLocation={true}
followUserLocation={true}
toolbarEnabled={true}
cacheEnabled={false}
loadingEnabled={false}
// liteMode={true}
initialRegion={this.state.region}
// region={this.state.region}
>
<MapView.Polygon
coordinates={this.state.polygon1}
fillColor="#ff7700"
strokeColor="#666"
strokeWidth={1}
/>
<MapView.Polygon
coordinates={this.state.polygon2}
fillColor="#ff7700"
strokeColor="#666"
strokeWidth={1}
tappable={true}
/>
</MapView>